adding quickfix
This commit is contained in:
711
quickfix/gen/fix42/advertisement/Advertisement.generated.go
Normal file
711
quickfix/gen/fix42/advertisement/Advertisement.generated.go
Normal file
@ -0,0 +1,711 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package advertisement
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// Advertisement is the fix42 Advertisement type, MsgType = 7.
|
||||
type Advertisement struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Advertisement from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Advertisement {
|
||||
return Advertisement{
|
||||
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 Advertisement) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Advertisement initialized with the required fields for Advertisement.
|
||||
func New(advid field.AdvIdField, advtranstype field.AdvTransTypeField, symbol field.SymbolField, advside field.AdvSideField, shares field.SharesField) (m Advertisement) {
|
||||
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("7"))
|
||||
m.Set(advid)
|
||||
m.Set(advtranstype)
|
||||
m.Set(symbol)
|
||||
m.Set(advside)
|
||||
m.Set(shares)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Advertisement, 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", "7", r
|
||||
}
|
||||
|
||||
// SetAdvId sets AdvId, Tag 2.
|
||||
func (m Advertisement) SetAdvId(v string) {
|
||||
m.Set(field.NewAdvId(v))
|
||||
}
|
||||
|
||||
// SetAdvRefID sets AdvRefID, Tag 3.
|
||||
func (m Advertisement) SetAdvRefID(v string) {
|
||||
m.Set(field.NewAdvRefID(v))
|
||||
}
|
||||
|
||||
// SetAdvSide sets AdvSide, Tag 4.
|
||||
func (m Advertisement) SetAdvSide(v enum.AdvSide) {
|
||||
m.Set(field.NewAdvSide(v))
|
||||
}
|
||||
|
||||
// SetAdvTransType sets AdvTransType, Tag 5.
|
||||
func (m Advertisement) SetAdvTransType(v enum.AdvTransType) {
|
||||
m.Set(field.NewAdvTransType(v))
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m Advertisement) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m Advertisement) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetLastMkt sets LastMkt, Tag 30.
|
||||
func (m Advertisement) SetLastMkt(v string) {
|
||||
m.Set(field.NewLastMkt(v))
|
||||
}
|
||||
|
||||
// SetPrice sets Price, Tag 44.
|
||||
func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrice(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m Advertisement) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetShares sets Shares, Tag 53.
|
||||
func (m Advertisement) SetShares(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewShares(value, scale))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m Advertisement) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m Advertisement) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m Advertisement) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m Advertisement) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetTradeDate sets TradeDate, Tag 75.
|
||||
func (m Advertisement) SetTradeDate(v string) {
|
||||
m.Set(field.NewTradeDate(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m Advertisement) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m Advertisement) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetURLLink sets URLLink, Tag 149.
|
||||
func (m Advertisement) SetURLLink(v string) {
|
||||
m.Set(field.NewURLLink(v))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m Advertisement) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m Advertisement) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m Advertisement) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m Advertisement) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m Advertisement) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(v))
|
||||
}
|
||||
|
||||
// SetOptAttribute sets OptAttribute, Tag 206.
|
||||
func (m Advertisement) SetOptAttribute(v string) {
|
||||
m.Set(field.NewOptAttribute(v))
|
||||
}
|
||||
|
||||
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
||||
func (m Advertisement) SetSecurityExchange(v string) {
|
||||
m.Set(field.NewSecurityExchange(v))
|
||||
}
|
||||
|
||||
// SetCouponRate sets CouponRate, Tag 223.
|
||||
func (m Advertisement) SetCouponRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m Advertisement) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m Advertisement) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
||||
func (m Advertisement) SetEncodedIssuerLen(v int) {
|
||||
m.Set(field.NewEncodedIssuerLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
||||
func (m Advertisement) SetEncodedIssuer(v string) {
|
||||
m.Set(field.NewEncodedIssuer(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
||||
func (m Advertisement) SetEncodedSecurityDescLen(v int) {
|
||||
m.Set(field.NewEncodedSecurityDescLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
||||
func (m Advertisement) SetEncodedSecurityDesc(v string) {
|
||||
m.Set(field.NewEncodedSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m Advertisement) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m Advertisement) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetAdvId gets AdvId, Tag 2.
|
||||
func (m Advertisement) GetAdvId() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AdvIdField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAdvRefID gets AdvRefID, Tag 3.
|
||||
func (m Advertisement) GetAdvRefID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AdvRefIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAdvSide gets AdvSide, Tag 4.
|
||||
func (m Advertisement) GetAdvSide() (v enum.AdvSide, err quickfix.MessageRejectError) {
|
||||
var f field.AdvSideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAdvTransType gets AdvTransType, Tag 5.
|
||||
func (m Advertisement) GetAdvTransType() (v enum.AdvTransType, err quickfix.MessageRejectError) {
|
||||
var f field.AdvTransTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m Advertisement) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m Advertisement) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLastMkt gets LastMkt, Tag 30.
|
||||
func (m Advertisement) GetLastMkt() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.LastMktField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrice gets Price, Tag 44.
|
||||
func (m Advertisement) GetPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m Advertisement) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetShares gets Shares, Tag 53.
|
||||
func (m Advertisement) GetShares() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.SharesField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m Advertisement) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m Advertisement) 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 Advertisement) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m Advertisement) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradeDate gets TradeDate, Tag 75.
|
||||
func (m Advertisement) GetTradeDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TradeDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m Advertisement) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m Advertisement) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetURLLink gets URLLink, Tag 149.
|
||||
func (m Advertisement) GetURLLink() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.URLLinkField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m Advertisement) 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 Advertisement) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityMonthYearField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPutOrCall gets PutOrCall, Tag 201.
|
||||
func (m Advertisement) 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 Advertisement) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StrikePriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityDay gets MaturityDay, Tag 205.
|
||||
func (m Advertisement) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityDayField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOptAttribute gets OptAttribute, Tag 206.
|
||||
func (m Advertisement) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OptAttributeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityExchange gets SecurityExchange, Tag 207.
|
||||
func (m Advertisement) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityExchangeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCouponRate gets CouponRate, Tag 223.
|
||||
func (m Advertisement) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CouponRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetContractMultiplier gets ContractMultiplier, Tag 231.
|
||||
func (m Advertisement) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.ContractMultiplierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradingSessionID gets TradingSessionID, Tag 336.
|
||||
func (m Advertisement) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
||||
var f field.TradingSessionIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348.
|
||||
func (m Advertisement) 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 Advertisement) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedIssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350.
|
||||
func (m Advertisement) 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 Advertisement) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m Advertisement) 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 Advertisement) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasAdvId returns true if AdvId is present, Tag 2.
|
||||
func (m Advertisement) HasAdvId() bool {
|
||||
return m.Has(tag.AdvId)
|
||||
}
|
||||
|
||||
// HasAdvRefID returns true if AdvRefID is present, Tag 3.
|
||||
func (m Advertisement) HasAdvRefID() bool {
|
||||
return m.Has(tag.AdvRefID)
|
||||
}
|
||||
|
||||
// HasAdvSide returns true if AdvSide is present, Tag 4.
|
||||
func (m Advertisement) HasAdvSide() bool {
|
||||
return m.Has(tag.AdvSide)
|
||||
}
|
||||
|
||||
// HasAdvTransType returns true if AdvTransType is present, Tag 5.
|
||||
func (m Advertisement) HasAdvTransType() bool {
|
||||
return m.Has(tag.AdvTransType)
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m Advertisement) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m Advertisement) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasLastMkt returns true if LastMkt is present, Tag 30.
|
||||
func (m Advertisement) HasLastMkt() bool {
|
||||
return m.Has(tag.LastMkt)
|
||||
}
|
||||
|
||||
// HasPrice returns true if Price is present, Tag 44.
|
||||
func (m Advertisement) HasPrice() bool {
|
||||
return m.Has(tag.Price)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m Advertisement) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasShares returns true if Shares is present, Tag 53.
|
||||
func (m Advertisement) HasShares() bool {
|
||||
return m.Has(tag.Shares)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m Advertisement) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m Advertisement) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m Advertisement) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m Advertisement) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasTradeDate returns true if TradeDate is present, Tag 75.
|
||||
func (m Advertisement) HasTradeDate() bool {
|
||||
return m.Has(tag.TradeDate)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m Advertisement) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m Advertisement) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasURLLink returns true if URLLink is present, Tag 149.
|
||||
func (m Advertisement) HasURLLink() bool {
|
||||
return m.Has(tag.URLLink)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m Advertisement) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
||||
func (m Advertisement) HasMaturityMonthYear() bool {
|
||||
return m.Has(tag.MaturityMonthYear)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m Advertisement) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m Advertisement) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m Advertisement) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
||||
func (m Advertisement) HasOptAttribute() bool {
|
||||
return m.Has(tag.OptAttribute)
|
||||
}
|
||||
|
||||
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
||||
func (m Advertisement) HasSecurityExchange() bool {
|
||||
return m.Has(tag.SecurityExchange)
|
||||
}
|
||||
|
||||
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
||||
func (m Advertisement) HasCouponRate() bool {
|
||||
return m.Has(tag.CouponRate)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m Advertisement) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m Advertisement) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
|
||||
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
||||
func (m Advertisement) HasEncodedIssuerLen() bool {
|
||||
return m.Has(tag.EncodedIssuerLen)
|
||||
}
|
||||
|
||||
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
||||
func (m Advertisement) HasEncodedIssuer() bool {
|
||||
return m.Has(tag.EncodedIssuer)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
||||
func (m Advertisement) HasEncodedSecurityDescLen() bool {
|
||||
return m.Has(tag.EncodedSecurityDescLen)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
||||
func (m Advertisement) HasEncodedSecurityDesc() bool {
|
||||
return m.Has(tag.EncodedSecurityDesc)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m Advertisement) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m Advertisement) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
1761
quickfix/gen/fix42/allocation/Allocation.generated.go
Normal file
1761
quickfix/gen/fix42/allocation/Allocation.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
251
quickfix/gen/fix42/allocationack/AllocationACK.generated.go
Normal file
251
quickfix/gen/fix42/allocationack/AllocationACK.generated.go
Normal file
@ -0,0 +1,251 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package allocationack
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"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"
|
||||
)
|
||||
|
||||
// AllocationACK is the fix42 AllocationACK type, MsgType = P.
|
||||
type AllocationACK struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a AllocationACK from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) AllocationACK {
|
||||
return AllocationACK{
|
||||
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 AllocationACK) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a AllocationACK initialized with the required fields for AllocationACK.
|
||||
func New(allocid field.AllocIDField, tradedate field.TradeDateField, allocstatus field.AllocStatusField) (m AllocationACK) {
|
||||
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("P"))
|
||||
m.Set(allocid)
|
||||
m.Set(tradedate)
|
||||
m.Set(allocstatus)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg AllocationACK, 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", "P", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m AllocationACK) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m AllocationACK) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetAllocID sets AllocID, Tag 70.
|
||||
func (m AllocationACK) SetAllocID(v string) {
|
||||
m.Set(field.NewAllocID(v))
|
||||
}
|
||||
|
||||
// SetTradeDate sets TradeDate, Tag 75.
|
||||
func (m AllocationACK) SetTradeDate(v string) {
|
||||
m.Set(field.NewTradeDate(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m AllocationACK) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetAllocStatus sets AllocStatus, Tag 87.
|
||||
func (m AllocationACK) SetAllocStatus(v enum.AllocStatus) {
|
||||
m.Set(field.NewAllocStatus(v))
|
||||
}
|
||||
|
||||
// SetAllocRejCode sets AllocRejCode, Tag 88.
|
||||
func (m AllocationACK) SetAllocRejCode(v enum.AllocRejCode) {
|
||||
m.Set(field.NewAllocRejCode(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m AllocationACK) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m AllocationACK) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m AllocationACK) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m AllocationACK) 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 AllocationACK) 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 AllocationACK) GetAllocID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AllocIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradeDate gets TradeDate, Tag 75.
|
||||
func (m AllocationACK) GetTradeDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TradeDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m AllocationACK) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAllocStatus gets AllocStatus, Tag 87.
|
||||
func (m AllocationACK) GetAllocStatus() (v enum.AllocStatus, err quickfix.MessageRejectError) {
|
||||
var f field.AllocStatusField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAllocRejCode gets AllocRejCode, Tag 88.
|
||||
func (m AllocationACK) GetAllocRejCode() (v enum.AllocRejCode, err quickfix.MessageRejectError) {
|
||||
var f field.AllocRejCodeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m AllocationACK) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m AllocationACK) 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 AllocationACK) 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 AllocationACK) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m AllocationACK) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasAllocID returns true if AllocID is present, Tag 70.
|
||||
func (m AllocationACK) HasAllocID() bool {
|
||||
return m.Has(tag.AllocID)
|
||||
}
|
||||
|
||||
// HasTradeDate returns true if TradeDate is present, Tag 75.
|
||||
func (m AllocationACK) HasTradeDate() bool {
|
||||
return m.Has(tag.TradeDate)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m AllocationACK) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasAllocStatus returns true if AllocStatus is present, Tag 87.
|
||||
func (m AllocationACK) HasAllocStatus() bool {
|
||||
return m.Has(tag.AllocStatus)
|
||||
}
|
||||
|
||||
// HasAllocRejCode returns true if AllocRejCode is present, Tag 88.
|
||||
func (m AllocationACK) HasAllocRejCode() bool {
|
||||
return m.Has(tag.AllocRejCode)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m AllocationACK) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m AllocationACK) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m AllocationACK) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
1037
quickfix/gen/fix42/bidrequest/BidRequest.generated.go
Normal file
1037
quickfix/gen/fix42/bidrequest/BidRequest.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
445
quickfix/gen/fix42/bidresponse/BidResponse.generated.go
Normal file
445
quickfix/gen/fix42/bidresponse/BidResponse.generated.go
Normal file
@ -0,0 +1,445 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package bidresponse
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// BidResponse is the fix42 BidResponse type, MsgType = l.
|
||||
type BidResponse struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a BidResponse from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) BidResponse {
|
||||
return BidResponse{
|
||||
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 BidResponse) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a BidResponse initialized with the required fields for BidResponse.
|
||||
func New() (m BidResponse) {
|
||||
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("l"))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg BidResponse, 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", "l", r
|
||||
}
|
||||
|
||||
// SetBidID sets BidID, Tag 390.
|
||||
func (m BidResponse) SetBidID(v string) {
|
||||
m.Set(field.NewBidID(v))
|
||||
}
|
||||
|
||||
// SetClientBidID sets ClientBidID, Tag 391.
|
||||
func (m BidResponse) SetClientBidID(v string) {
|
||||
m.Set(field.NewClientBidID(v))
|
||||
}
|
||||
|
||||
// SetNoBidComponents sets NoBidComponents, Tag 420.
|
||||
func (m BidResponse) SetNoBidComponents(f NoBidComponentsRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// GetBidID gets BidID, Tag 390.
|
||||
func (m BidResponse) GetBidID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.BidIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientBidID gets ClientBidID, Tag 391.
|
||||
func (m BidResponse) GetClientBidID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientBidIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNoBidComponents gets NoBidComponents, Tag 420.
|
||||
func (m BidResponse) GetNoBidComponents() (NoBidComponentsRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoBidComponentsRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// HasBidID returns true if BidID is present, Tag 390.
|
||||
func (m BidResponse) HasBidID() bool {
|
||||
return m.Has(tag.BidID)
|
||||
}
|
||||
|
||||
// HasClientBidID returns true if ClientBidID is present, Tag 391.
|
||||
func (m BidResponse) HasClientBidID() bool {
|
||||
return m.Has(tag.ClientBidID)
|
||||
}
|
||||
|
||||
// HasNoBidComponents returns true if NoBidComponents is present, Tag 420.
|
||||
func (m BidResponse) HasNoBidComponents() bool {
|
||||
return m.Has(tag.NoBidComponents)
|
||||
}
|
||||
|
||||
// NoBidComponents is a repeating group element, Tag 420.
|
||||
type NoBidComponents struct {
|
||||
*quickfix.Group
|
||||
}
|
||||
|
||||
// SetCommission sets Commission, Tag 12.
|
||||
func (m NoBidComponents) SetCommission(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCommission(value, scale))
|
||||
}
|
||||
|
||||
// SetCommType sets CommType, Tag 13.
|
||||
func (m NoBidComponents) SetCommType(v enum.CommType) {
|
||||
m.Set(field.NewCommType(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m NoBidComponents) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetCountry sets Country, Tag 421.
|
||||
func (m NoBidComponents) SetCountry(v string) {
|
||||
m.Set(field.NewCountry(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m NoBidComponents) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetPrice sets Price, Tag 44.
|
||||
func (m NoBidComponents) SetPrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrice(value, scale))
|
||||
}
|
||||
|
||||
// SetPriceType sets PriceType, Tag 423.
|
||||
func (m NoBidComponents) SetPriceType(v enum.PriceType) {
|
||||
m.Set(field.NewPriceType(v))
|
||||
}
|
||||
|
||||
// SetFairValue sets FairValue, Tag 406.
|
||||
func (m NoBidComponents) SetFairValue(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewFairValue(value, scale))
|
||||
}
|
||||
|
||||
// SetNetGrossInd sets NetGrossInd, Tag 430.
|
||||
func (m NoBidComponents) SetNetGrossInd(v enum.NetGrossInd) {
|
||||
m.Set(field.NewNetGrossInd(v))
|
||||
}
|
||||
|
||||
// SetSettlmntTyp sets SettlmntTyp, Tag 63.
|
||||
func (m NoBidComponents) SetSettlmntTyp(v enum.SettlmntTyp) {
|
||||
m.Set(field.NewSettlmntTyp(v))
|
||||
}
|
||||
|
||||
// SetFutSettDate sets FutSettDate, Tag 64.
|
||||
func (m NoBidComponents) SetFutSettDate(v string) {
|
||||
m.Set(field.NewFutSettDate(v))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m NoBidComponents) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m NoBidComponents) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m NoBidComponents) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m NoBidComponents) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetCommission gets Commission, Tag 12.
|
||||
func (m NoBidComponents) GetCommission() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CommissionField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCommType gets CommType, Tag 13.
|
||||
func (m NoBidComponents) GetCommType() (v enum.CommType, err quickfix.MessageRejectError) {
|
||||
var f field.CommTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m NoBidComponents) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCountry gets Country, Tag 421.
|
||||
func (m NoBidComponents) GetCountry() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CountryField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m NoBidComponents) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrice gets Price, Tag 44.
|
||||
func (m NoBidComponents) GetPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPriceType gets PriceType, Tag 423.
|
||||
func (m NoBidComponents) GetPriceType() (v enum.PriceType, err quickfix.MessageRejectError) {
|
||||
var f field.PriceTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFairValue gets FairValue, Tag 406.
|
||||
func (m NoBidComponents) GetFairValue() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.FairValueField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNetGrossInd gets NetGrossInd, Tag 430.
|
||||
func (m NoBidComponents) GetNetGrossInd() (v enum.NetGrossInd, err quickfix.MessageRejectError) {
|
||||
var f field.NetGrossIndField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlmntTyp gets SettlmntTyp, Tag 63.
|
||||
func (m NoBidComponents) GetSettlmntTyp() (v enum.SettlmntTyp, err quickfix.MessageRejectError) {
|
||||
var f field.SettlmntTypField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFutSettDate gets FutSettDate, Tag 64.
|
||||
func (m NoBidComponents) GetFutSettDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.FutSettDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradingSessionID gets TradingSessionID, Tag 336.
|
||||
func (m NoBidComponents) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
||||
var f field.TradingSessionIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m NoBidComponents) 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 NoBidComponents) 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 NoBidComponents) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasCommission returns true if Commission is present, Tag 12.
|
||||
func (m NoBidComponents) HasCommission() bool {
|
||||
return m.Has(tag.Commission)
|
||||
}
|
||||
|
||||
// HasCommType returns true if CommType is present, Tag 13.
|
||||
func (m NoBidComponents) HasCommType() bool {
|
||||
return m.Has(tag.CommType)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m NoBidComponents) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasCountry returns true if Country is present, Tag 421.
|
||||
func (m NoBidComponents) HasCountry() bool {
|
||||
return m.Has(tag.Country)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m NoBidComponents) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasPrice returns true if Price is present, Tag 44.
|
||||
func (m NoBidComponents) HasPrice() bool {
|
||||
return m.Has(tag.Price)
|
||||
}
|
||||
|
||||
// HasPriceType returns true if PriceType is present, Tag 423.
|
||||
func (m NoBidComponents) HasPriceType() bool {
|
||||
return m.Has(tag.PriceType)
|
||||
}
|
||||
|
||||
// HasFairValue returns true if FairValue is present, Tag 406.
|
||||
func (m NoBidComponents) HasFairValue() bool {
|
||||
return m.Has(tag.FairValue)
|
||||
}
|
||||
|
||||
// HasNetGrossInd returns true if NetGrossInd is present, Tag 430.
|
||||
func (m NoBidComponents) HasNetGrossInd() bool {
|
||||
return m.Has(tag.NetGrossInd)
|
||||
}
|
||||
|
||||
// HasSettlmntTyp returns true if SettlmntTyp is present, Tag 63.
|
||||
func (m NoBidComponents) HasSettlmntTyp() bool {
|
||||
return m.Has(tag.SettlmntTyp)
|
||||
}
|
||||
|
||||
// HasFutSettDate returns true if FutSettDate is present, Tag 64.
|
||||
func (m NoBidComponents) HasFutSettDate() bool {
|
||||
return m.Has(tag.FutSettDate)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m NoBidComponents) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m NoBidComponents) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m NoBidComponents) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m NoBidComponents) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// NoBidComponentsRepeatingGroup is a repeating group, Tag 420.
|
||||
type NoBidComponentsRepeatingGroup struct {
|
||||
*quickfix.RepeatingGroup
|
||||
}
|
||||
|
||||
// NewNoBidComponentsRepeatingGroup returns an initialized, NoBidComponentsRepeatingGroup.
|
||||
func NewNoBidComponentsRepeatingGroup() NoBidComponentsRepeatingGroup {
|
||||
return NoBidComponentsRepeatingGroup{
|
||||
quickfix.NewRepeatingGroup(
|
||||
tag.NoBidComponents,
|
||||
quickfix.GroupTemplate{
|
||||
quickfix.GroupElement(tag.Commission),
|
||||
quickfix.GroupElement(tag.CommType),
|
||||
quickfix.GroupElement(tag.ListID),
|
||||
quickfix.GroupElement(tag.Country),
|
||||
quickfix.GroupElement(tag.Side),
|
||||
quickfix.GroupElement(tag.Price),
|
||||
quickfix.GroupElement(tag.PriceType),
|
||||
quickfix.GroupElement(tag.FairValue),
|
||||
quickfix.GroupElement(tag.NetGrossInd),
|
||||
quickfix.GroupElement(tag.SettlmntTyp),
|
||||
quickfix.GroupElement(tag.FutSettDate),
|
||||
quickfix.GroupElement(tag.TradingSessionID),
|
||||
quickfix.GroupElement(tag.Text),
|
||||
quickfix.GroupElement(tag.EncodedTextLen),
|
||||
quickfix.GroupElement(tag.EncodedText),
|
||||
},
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// Add create and append a new NoBidComponents to this group.
|
||||
func (m NoBidComponentsRepeatingGroup) Add() NoBidComponents {
|
||||
g := m.RepeatingGroup.Add()
|
||||
return NoBidComponents{g}
|
||||
}
|
||||
|
||||
// Get returns the ith NoBidComponents in the NoBidComponentsRepeatinGroup.
|
||||
func (m NoBidComponentsRepeatingGroup) Get(i int) NoBidComponents {
|
||||
return NoBidComponents{m.RepeatingGroup.Get(i)}
|
||||
}
|
||||
@ -0,0 +1,191 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package businessmessagereject
|
||||
|
||||
import (
|
||||
"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"
|
||||
)
|
||||
|
||||
// BusinessMessageReject is the fix42 BusinessMessageReject type, MsgType = j.
|
||||
type BusinessMessageReject struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a BusinessMessageReject from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) BusinessMessageReject {
|
||||
return BusinessMessageReject{
|
||||
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 BusinessMessageReject) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a BusinessMessageReject initialized with the required fields for BusinessMessageReject.
|
||||
func New(refmsgtype field.RefMsgTypeField, businessrejectreason field.BusinessRejectReasonField) (m BusinessMessageReject) {
|
||||
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("j"))
|
||||
m.Set(refmsgtype)
|
||||
m.Set(businessrejectreason)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg BusinessMessageReject, 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", "j", r
|
||||
}
|
||||
|
||||
// SetRefSeqNum sets RefSeqNum, Tag 45.
|
||||
func (m BusinessMessageReject) SetRefSeqNum(v int) {
|
||||
m.Set(field.NewRefSeqNum(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m BusinessMessageReject) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m BusinessMessageReject) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m BusinessMessageReject) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// SetRefMsgType sets RefMsgType, Tag 372.
|
||||
func (m BusinessMessageReject) SetRefMsgType(v string) {
|
||||
m.Set(field.NewRefMsgType(v))
|
||||
}
|
||||
|
||||
// SetBusinessRejectRefID sets BusinessRejectRefID, Tag 379.
|
||||
func (m BusinessMessageReject) SetBusinessRejectRefID(v string) {
|
||||
m.Set(field.NewBusinessRejectRefID(v))
|
||||
}
|
||||
|
||||
// SetBusinessRejectReason sets BusinessRejectReason, Tag 380.
|
||||
func (m BusinessMessageReject) SetBusinessRejectReason(v enum.BusinessRejectReason) {
|
||||
m.Set(field.NewBusinessRejectReason(v))
|
||||
}
|
||||
|
||||
// GetRefSeqNum gets RefSeqNum, Tag 45.
|
||||
func (m BusinessMessageReject) GetRefSeqNum() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.RefSeqNumField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m BusinessMessageReject) 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 BusinessMessageReject) 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 BusinessMessageReject) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRefMsgType gets RefMsgType, Tag 372.
|
||||
func (m BusinessMessageReject) GetRefMsgType() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.RefMsgTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBusinessRejectRefID gets BusinessRejectRefID, Tag 379.
|
||||
func (m BusinessMessageReject) GetBusinessRejectRefID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.BusinessRejectRefIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBusinessRejectReason gets BusinessRejectReason, Tag 380.
|
||||
func (m BusinessMessageReject) GetBusinessRejectReason() (v enum.BusinessRejectReason, err quickfix.MessageRejectError) {
|
||||
var f field.BusinessRejectReasonField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasRefSeqNum returns true if RefSeqNum is present, Tag 45.
|
||||
func (m BusinessMessageReject) HasRefSeqNum() bool {
|
||||
return m.Has(tag.RefSeqNum)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m BusinessMessageReject) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m BusinessMessageReject) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m BusinessMessageReject) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// HasRefMsgType returns true if RefMsgType is present, Tag 372.
|
||||
func (m BusinessMessageReject) HasRefMsgType() bool {
|
||||
return m.Has(tag.RefMsgType)
|
||||
}
|
||||
|
||||
// HasBusinessRejectRefID returns true if BusinessRejectRefID is present, Tag 379.
|
||||
func (m BusinessMessageReject) HasBusinessRejectRefID() bool {
|
||||
return m.Has(tag.BusinessRejectRefID)
|
||||
}
|
||||
|
||||
// HasBusinessRejectReason returns true if BusinessRejectReason is present, Tag 380.
|
||||
func (m BusinessMessageReject) HasBusinessRejectReason() bool {
|
||||
return m.Has(tag.BusinessRejectReason)
|
||||
}
|
||||
633
quickfix/gen/fix42/dontknowtrade/DontKnowTrade.generated.go
Normal file
633
quickfix/gen/fix42/dontknowtrade/DontKnowTrade.generated.go
Normal file
@ -0,0 +1,633 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package dontknowtrade
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// DontKnowTrade is the fix42 DontKnowTrade type, MsgType = Q.
|
||||
type DontKnowTrade struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a DontKnowTrade from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) DontKnowTrade {
|
||||
return DontKnowTrade{
|
||||
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 DontKnowTrade) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a DontKnowTrade initialized with the required fields for DontKnowTrade.
|
||||
func New(orderid field.OrderIDField, execid field.ExecIDField, dkreason field.DKReasonField, symbol field.SymbolField, side field.SideField) (m DontKnowTrade) {
|
||||
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("Q"))
|
||||
m.Set(orderid)
|
||||
m.Set(execid)
|
||||
m.Set(dkreason)
|
||||
m.Set(symbol)
|
||||
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.2", "Q", r
|
||||
}
|
||||
|
||||
// SetExecID sets ExecID, Tag 17.
|
||||
func (m DontKnowTrade) SetExecID(v string) {
|
||||
m.Set(field.NewExecID(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m DontKnowTrade) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetLastPx sets LastPx, Tag 31.
|
||||
func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewLastPx(value, scale))
|
||||
}
|
||||
|
||||
// SetLastShares sets LastShares, Tag 32.
|
||||
func (m DontKnowTrade) SetLastShares(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewLastShares(value, scale))
|
||||
}
|
||||
|
||||
// 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(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// 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 enum.Side) {
|
||||
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 enum.SymbolSfx) {
|
||||
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 enum.DKReason) {
|
||||
m.Set(field.NewDKReason(v))
|
||||
}
|
||||
|
||||
// SetCashOrderQty sets CashOrderQty, Tag 152.
|
||||
func (m DontKnowTrade) SetCashOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCashOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m DontKnowTrade) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m DontKnowTrade) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m DontKnowTrade) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m DontKnowTrade) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m DontKnowTrade) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(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(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m DontKnowTrade) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// 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))
|
||||
}
|
||||
|
||||
// GetExecID gets ExecID, Tag 17.
|
||||
func (m DontKnowTrade) GetExecID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m DontKnowTrade) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLastPx gets LastPx, Tag 31.
|
||||
func (m DontKnowTrade) GetLastPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.LastPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLastShares gets LastShares, Tag 32.
|
||||
func (m DontKnowTrade) GetLastShares() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.LastSharesField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderID gets OrderID, Tag 37.
|
||||
func (m DontKnowTrade) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty gets OrderQty, Tag 38.
|
||||
func (m DontKnowTrade) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m DontKnowTrade) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m DontKnowTrade) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m DontKnowTrade) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m DontKnowTrade) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m DontKnowTrade) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m DontKnowTrade) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m DontKnowTrade) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetDKReason gets DKReason, Tag 127.
|
||||
func (m DontKnowTrade) GetDKReason() (v enum.DKReason, err quickfix.MessageRejectError) {
|
||||
var f field.DKReasonField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCashOrderQty gets CashOrderQty, Tag 152.
|
||||
func (m DontKnowTrade) GetCashOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CashOrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m DontKnowTrade) 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 DontKnowTrade) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityMonthYearField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPutOrCall gets PutOrCall, Tag 201.
|
||||
func (m DontKnowTrade) 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 DontKnowTrade) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StrikePriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityDay gets MaturityDay, Tag 205.
|
||||
func (m DontKnowTrade) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityDayField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOptAttribute gets OptAttribute, Tag 206.
|
||||
func (m DontKnowTrade) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OptAttributeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityExchange gets SecurityExchange, Tag 207.
|
||||
func (m DontKnowTrade) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityExchangeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCouponRate gets CouponRate, Tag 223.
|
||||
func (m DontKnowTrade) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CouponRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetContractMultiplier gets ContractMultiplier, Tag 231.
|
||||
func (m DontKnowTrade) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.ContractMultiplierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348.
|
||||
func (m DontKnowTrade) 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 DontKnowTrade) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedIssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350.
|
||||
func (m DontKnowTrade) 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 DontKnowTrade) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m DontKnowTrade) 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 DontKnowTrade) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasExecID returns true if ExecID is present, Tag 17.
|
||||
func (m DontKnowTrade) HasExecID() bool {
|
||||
return m.Has(tag.ExecID)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m DontKnowTrade) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasLastPx returns true if LastPx is present, Tag 31.
|
||||
func (m DontKnowTrade) HasLastPx() bool {
|
||||
return m.Has(tag.LastPx)
|
||||
}
|
||||
|
||||
// HasLastShares returns true if LastShares is present, Tag 32.
|
||||
func (m DontKnowTrade) HasLastShares() bool {
|
||||
return m.Has(tag.LastShares)
|
||||
}
|
||||
|
||||
// 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)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m DontKnowTrade) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m DontKnowTrade) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m DontKnowTrade) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// 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)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m DontKnowTrade) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// 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)
|
||||
}
|
||||
880
quickfix/gen/fix42/email/Email.generated.go
Normal file
880
quickfix/gen/fix42/email/Email.generated.go
Normal file
@ -0,0 +1,880 @@
|
||||
// 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)}
|
||||
}
|
||||
1928
quickfix/gen/fix42/executionreport/ExecutionReport.generated.go
Normal file
1928
quickfix/gen/fix42/executionreport/ExecutionReport.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
536
quickfix/gen/fix42/header.generated.go
Normal file
536
quickfix/gen/fix42/header.generated.go
Normal file
@ -0,0 +1,536 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package fix42
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/enum"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Header is the fix42 Header type.
|
||||
type Header struct {
|
||||
*quickfix.Header
|
||||
}
|
||||
|
||||
// NewHeader returns a new, initialized Header instance.
|
||||
func NewHeader(header *quickfix.Header) (h Header) {
|
||||
h.Header = header
|
||||
h.SetBeginString("FIX.4.2")
|
||||
return
|
||||
}
|
||||
|
||||
// SetBeginString sets BeginString, Tag 8.
|
||||
func (h Header) SetBeginString(v string) {
|
||||
h.Set(field.NewBeginString(v))
|
||||
}
|
||||
|
||||
// SetBodyLength sets BodyLength, Tag 9.
|
||||
func (h Header) SetBodyLength(v int) {
|
||||
h.Set(field.NewBodyLength(v))
|
||||
}
|
||||
|
||||
// SetMsgSeqNum sets MsgSeqNum, Tag 34.
|
||||
func (h Header) SetMsgSeqNum(v int) {
|
||||
h.Set(field.NewMsgSeqNum(v))
|
||||
}
|
||||
|
||||
// SetMsgType sets MsgType, Tag 35.
|
||||
func (h Header) SetMsgType(v enum.MsgType) {
|
||||
h.Set(field.NewMsgType(v))
|
||||
}
|
||||
|
||||
// SetPossDupFlag sets PossDupFlag, Tag 43.
|
||||
func (h Header) SetPossDupFlag(v bool) {
|
||||
h.Set(field.NewPossDupFlag(v))
|
||||
}
|
||||
|
||||
// SetSenderCompID sets SenderCompID, Tag 49.
|
||||
func (h Header) SetSenderCompID(v string) {
|
||||
h.Set(field.NewSenderCompID(v))
|
||||
}
|
||||
|
||||
// SetSenderSubID sets SenderSubID, Tag 50.
|
||||
func (h Header) SetSenderSubID(v string) {
|
||||
h.Set(field.NewSenderSubID(v))
|
||||
}
|
||||
|
||||
// SetSendingTime sets SendingTime, Tag 52.
|
||||
func (h Header) SetSendingTime(v time.Time) {
|
||||
h.Set(field.NewSendingTime(v))
|
||||
}
|
||||
|
||||
// SetTargetCompID sets TargetCompID, Tag 56.
|
||||
func (h Header) SetTargetCompID(v string) {
|
||||
h.Set(field.NewTargetCompID(v))
|
||||
}
|
||||
|
||||
// SetTargetSubID sets TargetSubID, Tag 57.
|
||||
func (h Header) SetTargetSubID(v string) {
|
||||
h.Set(field.NewTargetSubID(v))
|
||||
}
|
||||
|
||||
// SetSecureDataLen sets SecureDataLen, Tag 90.
|
||||
func (h Header) SetSecureDataLen(v int) {
|
||||
h.Set(field.NewSecureDataLen(v))
|
||||
}
|
||||
|
||||
// SetSecureData sets SecureData, Tag 91.
|
||||
func (h Header) SetSecureData(v string) {
|
||||
h.Set(field.NewSecureData(v))
|
||||
}
|
||||
|
||||
// SetPossResend sets PossResend, Tag 97.
|
||||
func (h Header) SetPossResend(v bool) {
|
||||
h.Set(field.NewPossResend(v))
|
||||
}
|
||||
|
||||
// SetOnBehalfOfCompID sets OnBehalfOfCompID, Tag 115.
|
||||
func (h Header) SetOnBehalfOfCompID(v string) {
|
||||
h.Set(field.NewOnBehalfOfCompID(v))
|
||||
}
|
||||
|
||||
// SetOnBehalfOfSubID sets OnBehalfOfSubID, Tag 116.
|
||||
func (h Header) SetOnBehalfOfSubID(v string) {
|
||||
h.Set(field.NewOnBehalfOfSubID(v))
|
||||
}
|
||||
|
||||
// SetOrigSendingTime sets OrigSendingTime, Tag 122.
|
||||
func (h Header) SetOrigSendingTime(v time.Time) {
|
||||
h.Set(field.NewOrigSendingTime(v))
|
||||
}
|
||||
|
||||
// SetDeliverToCompID sets DeliverToCompID, Tag 128.
|
||||
func (h Header) SetDeliverToCompID(v string) {
|
||||
h.Set(field.NewDeliverToCompID(v))
|
||||
}
|
||||
|
||||
// SetDeliverToSubID sets DeliverToSubID, Tag 129.
|
||||
func (h Header) SetDeliverToSubID(v string) {
|
||||
h.Set(field.NewDeliverToSubID(v))
|
||||
}
|
||||
|
||||
// SetSenderLocationID sets SenderLocationID, Tag 142.
|
||||
func (h Header) SetSenderLocationID(v string) {
|
||||
h.Set(field.NewSenderLocationID(v))
|
||||
}
|
||||
|
||||
// SetTargetLocationID sets TargetLocationID, Tag 143.
|
||||
func (h Header) SetTargetLocationID(v string) {
|
||||
h.Set(field.NewTargetLocationID(v))
|
||||
}
|
||||
|
||||
// SetOnBehalfOfLocationID sets OnBehalfOfLocationID, Tag 144.
|
||||
func (h Header) SetOnBehalfOfLocationID(v string) {
|
||||
h.Set(field.NewOnBehalfOfLocationID(v))
|
||||
}
|
||||
|
||||
// SetDeliverToLocationID sets DeliverToLocationID, Tag 145.
|
||||
func (h Header) SetDeliverToLocationID(v string) {
|
||||
h.Set(field.NewDeliverToLocationID(v))
|
||||
}
|
||||
|
||||
// SetXmlDataLen sets XmlDataLen, Tag 212.
|
||||
func (h Header) SetXmlDataLen(v int) {
|
||||
h.Set(field.NewXmlDataLen(v))
|
||||
}
|
||||
|
||||
// SetXmlData sets XmlData, Tag 213.
|
||||
func (h Header) SetXmlData(v string) {
|
||||
h.Set(field.NewXmlData(v))
|
||||
}
|
||||
|
||||
// SetMessageEncoding sets MessageEncoding, Tag 347.
|
||||
func (h Header) SetMessageEncoding(v enum.MessageEncoding) {
|
||||
h.Set(field.NewMessageEncoding(v))
|
||||
}
|
||||
|
||||
// SetLastMsgSeqNumProcessed sets LastMsgSeqNumProcessed, Tag 369.
|
||||
func (h Header) SetLastMsgSeqNumProcessed(v int) {
|
||||
h.Set(field.NewLastMsgSeqNumProcessed(v))
|
||||
}
|
||||
|
||||
// SetOnBehalfOfSendingTime sets OnBehalfOfSendingTime, Tag 370.
|
||||
func (h Header) SetOnBehalfOfSendingTime(v time.Time) {
|
||||
h.Set(field.NewOnBehalfOfSendingTime(v))
|
||||
}
|
||||
|
||||
// GetBeginString gets BeginString, Tag 8.
|
||||
func (h Header) GetBeginString() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.BeginStringField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBodyLength gets BodyLength, Tag 9.
|
||||
func (h Header) GetBodyLength() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.BodyLengthField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMsgSeqNum gets MsgSeqNum, Tag 34.
|
||||
func (h Header) GetMsgSeqNum() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MsgSeqNumField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMsgType gets MsgType, Tag 35.
|
||||
func (h Header) GetMsgType() (v enum.MsgType, err quickfix.MessageRejectError) {
|
||||
var f field.MsgTypeField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPossDupFlag gets PossDupFlag, Tag 43.
|
||||
func (h Header) GetPossDupFlag() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.PossDupFlagField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSenderCompID gets SenderCompID, Tag 49.
|
||||
func (h Header) GetSenderCompID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SenderCompIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSenderSubID gets SenderSubID, Tag 50.
|
||||
func (h Header) GetSenderSubID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SenderSubIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSendingTime gets SendingTime, Tag 52.
|
||||
func (h Header) GetSendingTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.SendingTimeField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTargetCompID gets TargetCompID, Tag 56.
|
||||
func (h Header) GetTargetCompID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TargetCompIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTargetSubID gets TargetSubID, Tag 57.
|
||||
func (h Header) GetTargetSubID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TargetSubIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecureDataLen gets SecureDataLen, Tag 90.
|
||||
func (h Header) GetSecureDataLen() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.SecureDataLenField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecureData gets SecureData, Tag 91.
|
||||
func (h Header) GetSecureData() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecureDataField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPossResend gets PossResend, Tag 97.
|
||||
func (h Header) GetPossResend() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.PossResendField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOnBehalfOfCompID gets OnBehalfOfCompID, Tag 115.
|
||||
func (h Header) GetOnBehalfOfCompID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OnBehalfOfCompIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOnBehalfOfSubID gets OnBehalfOfSubID, Tag 116.
|
||||
func (h Header) GetOnBehalfOfSubID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OnBehalfOfSubIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrigSendingTime gets OrigSendingTime, Tag 122.
|
||||
func (h Header) GetOrigSendingTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.OrigSendingTimeField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetDeliverToCompID gets DeliverToCompID, Tag 128.
|
||||
func (h Header) GetDeliverToCompID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.DeliverToCompIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetDeliverToSubID gets DeliverToSubID, Tag 129.
|
||||
func (h Header) GetDeliverToSubID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.DeliverToSubIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSenderLocationID gets SenderLocationID, Tag 142.
|
||||
func (h Header) GetSenderLocationID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SenderLocationIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTargetLocationID gets TargetLocationID, Tag 143.
|
||||
func (h Header) GetTargetLocationID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TargetLocationIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOnBehalfOfLocationID gets OnBehalfOfLocationID, Tag 144.
|
||||
func (h Header) GetOnBehalfOfLocationID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OnBehalfOfLocationIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetDeliverToLocationID gets DeliverToLocationID, Tag 145.
|
||||
func (h Header) GetDeliverToLocationID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.DeliverToLocationIDField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetXmlDataLen gets XmlDataLen, Tag 212.
|
||||
func (h Header) GetXmlDataLen() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.XmlDataLenField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetXmlData gets XmlData, Tag 213.
|
||||
func (h Header) GetXmlData() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.XmlDataField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMessageEncoding gets MessageEncoding, Tag 347.
|
||||
func (h Header) GetMessageEncoding() (v enum.MessageEncoding, err quickfix.MessageRejectError) {
|
||||
var f field.MessageEncodingField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLastMsgSeqNumProcessed gets LastMsgSeqNumProcessed, Tag 369.
|
||||
func (h Header) GetLastMsgSeqNumProcessed() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.LastMsgSeqNumProcessedField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOnBehalfOfSendingTime gets OnBehalfOfSendingTime, Tag 370.
|
||||
func (h Header) GetOnBehalfOfSendingTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.OnBehalfOfSendingTimeField
|
||||
if err = h.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasBeginString returns true if BeginString is present, Tag 8.
|
||||
func (h Header) HasBeginString() bool {
|
||||
return h.Has(tag.BeginString)
|
||||
}
|
||||
|
||||
// HasBodyLength returns true if BodyLength is present, Tag 9.
|
||||
func (h Header) HasBodyLength() bool {
|
||||
return h.Has(tag.BodyLength)
|
||||
}
|
||||
|
||||
// HasMsgSeqNum returns true if MsgSeqNum is present, Tag 34.
|
||||
func (h Header) HasMsgSeqNum() bool {
|
||||
return h.Has(tag.MsgSeqNum)
|
||||
}
|
||||
|
||||
// HasMsgType returns true if MsgType is present, Tag 35.
|
||||
func (h Header) HasMsgType() bool {
|
||||
return h.Has(tag.MsgType)
|
||||
}
|
||||
|
||||
// HasPossDupFlag returns true if PossDupFlag is present, Tag 43.
|
||||
func (h Header) HasPossDupFlag() bool {
|
||||
return h.Has(tag.PossDupFlag)
|
||||
}
|
||||
|
||||
// HasSenderCompID returns true if SenderCompID is present, Tag 49.
|
||||
func (h Header) HasSenderCompID() bool {
|
||||
return h.Has(tag.SenderCompID)
|
||||
}
|
||||
|
||||
// HasSenderSubID returns true if SenderSubID is present, Tag 50.
|
||||
func (h Header) HasSenderSubID() bool {
|
||||
return h.Has(tag.SenderSubID)
|
||||
}
|
||||
|
||||
// HasSendingTime returns true if SendingTime is present, Tag 52.
|
||||
func (h Header) HasSendingTime() bool {
|
||||
return h.Has(tag.SendingTime)
|
||||
}
|
||||
|
||||
// HasTargetCompID returns true if TargetCompID is present, Tag 56.
|
||||
func (h Header) HasTargetCompID() bool {
|
||||
return h.Has(tag.TargetCompID)
|
||||
}
|
||||
|
||||
// HasTargetSubID returns true if TargetSubID is present, Tag 57.
|
||||
func (h Header) HasTargetSubID() bool {
|
||||
return h.Has(tag.TargetSubID)
|
||||
}
|
||||
|
||||
// HasSecureDataLen returns true if SecureDataLen is present, Tag 90.
|
||||
func (h Header) HasSecureDataLen() bool {
|
||||
return h.Has(tag.SecureDataLen)
|
||||
}
|
||||
|
||||
// HasSecureData returns true if SecureData is present, Tag 91.
|
||||
func (h Header) HasSecureData() bool {
|
||||
return h.Has(tag.SecureData)
|
||||
}
|
||||
|
||||
// HasPossResend returns true if PossResend is present, Tag 97.
|
||||
func (h Header) HasPossResend() bool {
|
||||
return h.Has(tag.PossResend)
|
||||
}
|
||||
|
||||
// HasOnBehalfOfCompID returns true if OnBehalfOfCompID is present, Tag 115.
|
||||
func (h Header) HasOnBehalfOfCompID() bool {
|
||||
return h.Has(tag.OnBehalfOfCompID)
|
||||
}
|
||||
|
||||
// HasOnBehalfOfSubID returns true if OnBehalfOfSubID is present, Tag 116.
|
||||
func (h Header) HasOnBehalfOfSubID() bool {
|
||||
return h.Has(tag.OnBehalfOfSubID)
|
||||
}
|
||||
|
||||
// HasOrigSendingTime returns true if OrigSendingTime is present, Tag 122.
|
||||
func (h Header) HasOrigSendingTime() bool {
|
||||
return h.Has(tag.OrigSendingTime)
|
||||
}
|
||||
|
||||
// HasDeliverToCompID returns true if DeliverToCompID is present, Tag 128.
|
||||
func (h Header) HasDeliverToCompID() bool {
|
||||
return h.Has(tag.DeliverToCompID)
|
||||
}
|
||||
|
||||
// HasDeliverToSubID returns true if DeliverToSubID is present, Tag 129.
|
||||
func (h Header) HasDeliverToSubID() bool {
|
||||
return h.Has(tag.DeliverToSubID)
|
||||
}
|
||||
|
||||
// HasSenderLocationID returns true if SenderLocationID is present, Tag 142.
|
||||
func (h Header) HasSenderLocationID() bool {
|
||||
return h.Has(tag.SenderLocationID)
|
||||
}
|
||||
|
||||
// HasTargetLocationID returns true if TargetLocationID is present, Tag 143.
|
||||
func (h Header) HasTargetLocationID() bool {
|
||||
return h.Has(tag.TargetLocationID)
|
||||
}
|
||||
|
||||
// HasOnBehalfOfLocationID returns true if OnBehalfOfLocationID is present, Tag 144.
|
||||
func (h Header) HasOnBehalfOfLocationID() bool {
|
||||
return h.Has(tag.OnBehalfOfLocationID)
|
||||
}
|
||||
|
||||
// HasDeliverToLocationID returns true if DeliverToLocationID is present, Tag 145.
|
||||
func (h Header) HasDeliverToLocationID() bool {
|
||||
return h.Has(tag.DeliverToLocationID)
|
||||
}
|
||||
|
||||
// HasXmlDataLen returns true if XmlDataLen is present, Tag 212.
|
||||
func (h Header) HasXmlDataLen() bool {
|
||||
return h.Has(tag.XmlDataLen)
|
||||
}
|
||||
|
||||
// HasXmlData returns true if XmlData is present, Tag 213.
|
||||
func (h Header) HasXmlData() bool {
|
||||
return h.Has(tag.XmlData)
|
||||
}
|
||||
|
||||
// HasMessageEncoding returns true if MessageEncoding is present, Tag 347.
|
||||
func (h Header) HasMessageEncoding() bool {
|
||||
return h.Has(tag.MessageEncoding)
|
||||
}
|
||||
|
||||
// HasLastMsgSeqNumProcessed returns true if LastMsgSeqNumProcessed is present, Tag 369.
|
||||
func (h Header) HasLastMsgSeqNumProcessed() bool {
|
||||
return h.Has(tag.LastMsgSeqNumProcessed)
|
||||
}
|
||||
|
||||
// HasOnBehalfOfSendingTime returns true if OnBehalfOfSendingTime is present, Tag 370.
|
||||
func (h Header) HasOnBehalfOfSendingTime() bool {
|
||||
return h.Has(tag.OnBehalfOfSendingTime)
|
||||
}
|
||||
74
quickfix/gen/fix42/heartbeat/Heartbeat.generated.go
Normal file
74
quickfix/gen/fix42/heartbeat/Heartbeat.generated.go
Normal file
@ -0,0 +1,74 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package heartbeat
|
||||
|
||||
import (
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/fix42"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Heartbeat is the fix42 Heartbeat type, MsgType = 0.
|
||||
type Heartbeat struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Heartbeat from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Heartbeat {
|
||||
return Heartbeat{
|
||||
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 Heartbeat) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Heartbeat initialized with the required fields for Heartbeat.
|
||||
func New() (m Heartbeat) {
|
||||
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("0"))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Heartbeat, 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", "0", r
|
||||
}
|
||||
|
||||
// SetTestReqID sets TestReqID, Tag 112.
|
||||
func (m Heartbeat) SetTestReqID(v string) {
|
||||
m.Set(field.NewTestReqID(v))
|
||||
}
|
||||
|
||||
// GetTestReqID gets TestReqID, Tag 112.
|
||||
func (m Heartbeat) GetTestReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TestReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasTestReqID returns true if TestReqID is present, Tag 112.
|
||||
func (m Heartbeat) HasTestReqID() bool {
|
||||
return m.Has(tag.TestReqID)
|
||||
}
|
||||
@ -0,0 +1,907 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package indicationofinterest
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// IndicationofInterest is the fix42 IndicationofInterest type, MsgType = 6.
|
||||
type IndicationofInterest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a IndicationofInterest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) IndicationofInterest {
|
||||
return IndicationofInterest{
|
||||
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 IndicationofInterest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a IndicationofInterest initialized with the required fields for IndicationofInterest.
|
||||
func New(ioiid field.IOIidField, ioitranstype field.IOITransTypeField, symbol field.SymbolField, side field.SideField, ioishares field.IOISharesField) (m IndicationofInterest) {
|
||||
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("6"))
|
||||
m.Set(ioiid)
|
||||
m.Set(ioitranstype)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
m.Set(ioishares)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg IndicationofInterest, 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", "6", r
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m IndicationofInterest) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m IndicationofInterest) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetIOIid sets IOIid, Tag 23.
|
||||
func (m IndicationofInterest) SetIOIid(v string) {
|
||||
m.Set(field.NewIOIid(v))
|
||||
}
|
||||
|
||||
// SetIOIQltyInd sets IOIQltyInd, Tag 25.
|
||||
func (m IndicationofInterest) SetIOIQltyInd(v enum.IOIQltyInd) {
|
||||
m.Set(field.NewIOIQltyInd(v))
|
||||
}
|
||||
|
||||
// SetIOIRefID sets IOIRefID, Tag 26.
|
||||
func (m IndicationofInterest) SetIOIRefID(v string) {
|
||||
m.Set(field.NewIOIRefID(v))
|
||||
}
|
||||
|
||||
// SetIOIShares sets IOIShares, Tag 27.
|
||||
func (m IndicationofInterest) SetIOIShares(v enum.IOIShares) {
|
||||
m.Set(field.NewIOIShares(v))
|
||||
}
|
||||
|
||||
// SetIOITransType sets IOITransType, Tag 28.
|
||||
func (m IndicationofInterest) SetIOITransType(v enum.IOITransType) {
|
||||
m.Set(field.NewIOITransType(v))
|
||||
}
|
||||
|
||||
// SetPrice sets Price, Tag 44.
|
||||
func (m IndicationofInterest) SetPrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrice(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m IndicationofInterest) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m IndicationofInterest) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m IndicationofInterest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m IndicationofInterest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m IndicationofInterest) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetValidUntilTime sets ValidUntilTime, Tag 62.
|
||||
func (m IndicationofInterest) SetValidUntilTime(v time.Time) {
|
||||
m.Set(field.NewValidUntilTime(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m IndicationofInterest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m IndicationofInterest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m IndicationofInterest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetIOINaturalFlag sets IOINaturalFlag, Tag 130.
|
||||
func (m IndicationofInterest) SetIOINaturalFlag(v bool) {
|
||||
m.Set(field.NewIOINaturalFlag(v))
|
||||
}
|
||||
|
||||
// SetURLLink sets URLLink, Tag 149.
|
||||
func (m IndicationofInterest) SetURLLink(v string) {
|
||||
m.Set(field.NewURLLink(v))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m IndicationofInterest) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetNoIOIQualifiers sets NoIOIQualifiers, Tag 199.
|
||||
func (m IndicationofInterest) SetNoIOIQualifiers(f NoIOIQualifiersRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m IndicationofInterest) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m IndicationofInterest) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m IndicationofInterest) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m IndicationofInterest) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(v))
|
||||
}
|
||||
|
||||
// SetOptAttribute sets OptAttribute, Tag 206.
|
||||
func (m IndicationofInterest) SetOptAttribute(v string) {
|
||||
m.Set(field.NewOptAttribute(v))
|
||||
}
|
||||
|
||||
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
||||
func (m IndicationofInterest) SetSecurityExchange(v string) {
|
||||
m.Set(field.NewSecurityExchange(v))
|
||||
}
|
||||
|
||||
// SetNoRoutingIDs sets NoRoutingIDs, Tag 215.
|
||||
func (m IndicationofInterest) SetNoRoutingIDs(f NoRoutingIDsRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// SetSpreadToBenchmark sets SpreadToBenchmark, Tag 218.
|
||||
func (m IndicationofInterest) SetSpreadToBenchmark(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewSpreadToBenchmark(value, scale))
|
||||
}
|
||||
|
||||
// SetBenchmark sets Benchmark, Tag 219.
|
||||
func (m IndicationofInterest) SetBenchmark(v enum.Benchmark) {
|
||||
m.Set(field.NewBenchmark(v))
|
||||
}
|
||||
|
||||
// SetCouponRate sets CouponRate, Tag 223.
|
||||
func (m IndicationofInterest) SetCouponRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m IndicationofInterest) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
||||
func (m IndicationofInterest) SetEncodedIssuerLen(v int) {
|
||||
m.Set(field.NewEncodedIssuerLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
||||
func (m IndicationofInterest) SetEncodedIssuer(v string) {
|
||||
m.Set(field.NewEncodedIssuer(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
||||
func (m IndicationofInterest) SetEncodedSecurityDescLen(v int) {
|
||||
m.Set(field.NewEncodedSecurityDescLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
||||
func (m IndicationofInterest) SetEncodedSecurityDesc(v string) {
|
||||
m.Set(field.NewEncodedSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m IndicationofInterest) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m IndicationofInterest) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m IndicationofInterest) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m IndicationofInterest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIid gets IOIid, Tag 23.
|
||||
func (m IndicationofInterest) GetIOIid() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IOIidField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIQltyInd gets IOIQltyInd, Tag 25.
|
||||
func (m IndicationofInterest) GetIOIQltyInd() (v enum.IOIQltyInd, err quickfix.MessageRejectError) {
|
||||
var f field.IOIQltyIndField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIRefID gets IOIRefID, Tag 26.
|
||||
func (m IndicationofInterest) GetIOIRefID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IOIRefIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIShares gets IOIShares, Tag 27.
|
||||
func (m IndicationofInterest) GetIOIShares() (v enum.IOIShares, err quickfix.MessageRejectError) {
|
||||
var f field.IOISharesField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOITransType gets IOITransType, Tag 28.
|
||||
func (m IndicationofInterest) GetIOITransType() (v enum.IOITransType, err quickfix.MessageRejectError) {
|
||||
var f field.IOITransTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrice gets Price, Tag 44.
|
||||
func (m IndicationofInterest) GetPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m IndicationofInterest) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m IndicationofInterest) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m IndicationofInterest) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m IndicationofInterest) 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 IndicationofInterest) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetValidUntilTime gets ValidUntilTime, Tag 62.
|
||||
func (m IndicationofInterest) GetValidUntilTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.ValidUntilTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m IndicationofInterest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m IndicationofInterest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m IndicationofInterest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOINaturalFlag gets IOINaturalFlag, Tag 130.
|
||||
func (m IndicationofInterest) GetIOINaturalFlag() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.IOINaturalFlagField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetURLLink gets URLLink, Tag 149.
|
||||
func (m IndicationofInterest) GetURLLink() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.URLLinkField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m IndicationofInterest) GetSecurityType() (v enum.SecurityType, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNoIOIQualifiers gets NoIOIQualifiers, Tag 199.
|
||||
func (m IndicationofInterest) GetNoIOIQualifiers() (NoIOIQualifiersRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoIOIQualifiersRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// GetMaturityMonthYear gets MaturityMonthYear, Tag 200.
|
||||
func (m IndicationofInterest) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityMonthYearField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPutOrCall gets PutOrCall, Tag 201.
|
||||
func (m IndicationofInterest) 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 IndicationofInterest) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StrikePriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityDay gets MaturityDay, Tag 205.
|
||||
func (m IndicationofInterest) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityDayField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOptAttribute gets OptAttribute, Tag 206.
|
||||
func (m IndicationofInterest) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OptAttributeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityExchange gets SecurityExchange, Tag 207.
|
||||
func (m IndicationofInterest) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityExchangeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNoRoutingIDs gets NoRoutingIDs, Tag 215.
|
||||
func (m IndicationofInterest) GetNoRoutingIDs() (NoRoutingIDsRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoRoutingIDsRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// GetSpreadToBenchmark gets SpreadToBenchmark, Tag 218.
|
||||
func (m IndicationofInterest) GetSpreadToBenchmark() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.SpreadToBenchmarkField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBenchmark gets Benchmark, Tag 219.
|
||||
func (m IndicationofInterest) GetBenchmark() (v enum.Benchmark, err quickfix.MessageRejectError) {
|
||||
var f field.BenchmarkField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCouponRate gets CouponRate, Tag 223.
|
||||
func (m IndicationofInterest) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CouponRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetContractMultiplier gets ContractMultiplier, Tag 231.
|
||||
func (m IndicationofInterest) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.ContractMultiplierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348.
|
||||
func (m IndicationofInterest) 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 IndicationofInterest) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedIssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350.
|
||||
func (m IndicationofInterest) 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 IndicationofInterest) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m IndicationofInterest) 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 IndicationofInterest) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m IndicationofInterest) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m IndicationofInterest) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasIOIid returns true if IOIid is present, Tag 23.
|
||||
func (m IndicationofInterest) HasIOIid() bool {
|
||||
return m.Has(tag.IOIid)
|
||||
}
|
||||
|
||||
// HasIOIQltyInd returns true if IOIQltyInd is present, Tag 25.
|
||||
func (m IndicationofInterest) HasIOIQltyInd() bool {
|
||||
return m.Has(tag.IOIQltyInd)
|
||||
}
|
||||
|
||||
// HasIOIRefID returns true if IOIRefID is present, Tag 26.
|
||||
func (m IndicationofInterest) HasIOIRefID() bool {
|
||||
return m.Has(tag.IOIRefID)
|
||||
}
|
||||
|
||||
// HasIOIShares returns true if IOIShares is present, Tag 27.
|
||||
func (m IndicationofInterest) HasIOIShares() bool {
|
||||
return m.Has(tag.IOIShares)
|
||||
}
|
||||
|
||||
// HasIOITransType returns true if IOITransType is present, Tag 28.
|
||||
func (m IndicationofInterest) HasIOITransType() bool {
|
||||
return m.Has(tag.IOITransType)
|
||||
}
|
||||
|
||||
// HasPrice returns true if Price is present, Tag 44.
|
||||
func (m IndicationofInterest) HasPrice() bool {
|
||||
return m.Has(tag.Price)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m IndicationofInterest) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m IndicationofInterest) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m IndicationofInterest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m IndicationofInterest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m IndicationofInterest) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasValidUntilTime returns true if ValidUntilTime is present, Tag 62.
|
||||
func (m IndicationofInterest) HasValidUntilTime() bool {
|
||||
return m.Has(tag.ValidUntilTime)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m IndicationofInterest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m IndicationofInterest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m IndicationofInterest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasIOINaturalFlag returns true if IOINaturalFlag is present, Tag 130.
|
||||
func (m IndicationofInterest) HasIOINaturalFlag() bool {
|
||||
return m.Has(tag.IOINaturalFlag)
|
||||
}
|
||||
|
||||
// HasURLLink returns true if URLLink is present, Tag 149.
|
||||
func (m IndicationofInterest) HasURLLink() bool {
|
||||
return m.Has(tag.URLLink)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m IndicationofInterest) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasNoIOIQualifiers returns true if NoIOIQualifiers is present, Tag 199.
|
||||
func (m IndicationofInterest) HasNoIOIQualifiers() bool {
|
||||
return m.Has(tag.NoIOIQualifiers)
|
||||
}
|
||||
|
||||
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
||||
func (m IndicationofInterest) HasMaturityMonthYear() bool {
|
||||
return m.Has(tag.MaturityMonthYear)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m IndicationofInterest) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m IndicationofInterest) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m IndicationofInterest) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
||||
func (m IndicationofInterest) HasOptAttribute() bool {
|
||||
return m.Has(tag.OptAttribute)
|
||||
}
|
||||
|
||||
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
||||
func (m IndicationofInterest) HasSecurityExchange() bool {
|
||||
return m.Has(tag.SecurityExchange)
|
||||
}
|
||||
|
||||
// HasNoRoutingIDs returns true if NoRoutingIDs is present, Tag 215.
|
||||
func (m IndicationofInterest) HasNoRoutingIDs() bool {
|
||||
return m.Has(tag.NoRoutingIDs)
|
||||
}
|
||||
|
||||
// HasSpreadToBenchmark returns true if SpreadToBenchmark is present, Tag 218.
|
||||
func (m IndicationofInterest) HasSpreadToBenchmark() bool {
|
||||
return m.Has(tag.SpreadToBenchmark)
|
||||
}
|
||||
|
||||
// HasBenchmark returns true if Benchmark is present, Tag 219.
|
||||
func (m IndicationofInterest) HasBenchmark() bool {
|
||||
return m.Has(tag.Benchmark)
|
||||
}
|
||||
|
||||
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
||||
func (m IndicationofInterest) HasCouponRate() bool {
|
||||
return m.Has(tag.CouponRate)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m IndicationofInterest) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
||||
func (m IndicationofInterest) HasEncodedIssuerLen() bool {
|
||||
return m.Has(tag.EncodedIssuerLen)
|
||||
}
|
||||
|
||||
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
||||
func (m IndicationofInterest) HasEncodedIssuer() bool {
|
||||
return m.Has(tag.EncodedIssuer)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
||||
func (m IndicationofInterest) HasEncodedSecurityDescLen() bool {
|
||||
return m.Has(tag.EncodedSecurityDescLen)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
||||
func (m IndicationofInterest) HasEncodedSecurityDesc() bool {
|
||||
return m.Has(tag.EncodedSecurityDesc)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m IndicationofInterest) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m IndicationofInterest) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// NoIOIQualifiers is a repeating group element, Tag 199.
|
||||
type NoIOIQualifiers struct {
|
||||
*quickfix.Group
|
||||
}
|
||||
|
||||
// SetIOIQualifier sets IOIQualifier, Tag 104.
|
||||
func (m NoIOIQualifiers) SetIOIQualifier(v enum.IOIQualifier) {
|
||||
m.Set(field.NewIOIQualifier(v))
|
||||
}
|
||||
|
||||
// GetIOIQualifier gets IOIQualifier, Tag 104.
|
||||
func (m NoIOIQualifiers) GetIOIQualifier() (v enum.IOIQualifier, err quickfix.MessageRejectError) {
|
||||
var f field.IOIQualifierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasIOIQualifier returns true if IOIQualifier is present, Tag 104.
|
||||
func (m NoIOIQualifiers) HasIOIQualifier() bool {
|
||||
return m.Has(tag.IOIQualifier)
|
||||
}
|
||||
|
||||
// NoIOIQualifiersRepeatingGroup is a repeating group, Tag 199.
|
||||
type NoIOIQualifiersRepeatingGroup struct {
|
||||
*quickfix.RepeatingGroup
|
||||
}
|
||||
|
||||
// NewNoIOIQualifiersRepeatingGroup returns an initialized, NoIOIQualifiersRepeatingGroup.
|
||||
func NewNoIOIQualifiersRepeatingGroup() NoIOIQualifiersRepeatingGroup {
|
||||
return NoIOIQualifiersRepeatingGroup{
|
||||
quickfix.NewRepeatingGroup(
|
||||
tag.NoIOIQualifiers,
|
||||
quickfix.GroupTemplate{
|
||||
quickfix.GroupElement(tag.IOIQualifier),
|
||||
},
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// Add create and append a new NoIOIQualifiers to this group.
|
||||
func (m NoIOIQualifiersRepeatingGroup) Add() NoIOIQualifiers {
|
||||
g := m.RepeatingGroup.Add()
|
||||
return NoIOIQualifiers{g}
|
||||
}
|
||||
|
||||
// Get returns the ith NoIOIQualifiers in the NoIOIQualifiersRepeatinGroup.
|
||||
func (m NoIOIQualifiersRepeatingGroup) Get(i int) NoIOIQualifiers {
|
||||
return NoIOIQualifiers{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)}
|
||||
}
|
||||
@ -0,0 +1,154 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package listcancelrequest
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/fix42"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ListCancelRequest is the fix42 ListCancelRequest type, MsgType = K.
|
||||
type ListCancelRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListCancelRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListCancelRequest {
|
||||
return ListCancelRequest{
|
||||
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 ListCancelRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ListCancelRequest initialized with the required fields for ListCancelRequest.
|
||||
func New(listid field.ListIDField, transacttime field.TransactTimeField) (m ListCancelRequest) {
|
||||
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("K"))
|
||||
m.Set(listid)
|
||||
m.Set(transacttime)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ListCancelRequest, 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", "K", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m ListCancelRequest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m ListCancelRequest) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListCancelRequest) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m ListCancelRequest) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m ListCancelRequest) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m ListCancelRequest) 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 ListCancelRequest) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListCancelRequest) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m ListCancelRequest) 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 ListCancelRequest) 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 ListCancelRequest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m ListCancelRequest) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListCancelRequest) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m ListCancelRequest) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m ListCancelRequest) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
192
quickfix/gen/fix42/listexecute/ListExecute.generated.go
Normal file
192
quickfix/gen/fix42/listexecute/ListExecute.generated.go
Normal file
@ -0,0 +1,192 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package listexecute
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/fix42"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ListExecute is the fix42 ListExecute type, MsgType = L.
|
||||
type ListExecute struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListExecute from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListExecute {
|
||||
return ListExecute{
|
||||
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 ListExecute) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ListExecute initialized with the required fields for ListExecute.
|
||||
func New(listid field.ListIDField, transacttime field.TransactTimeField) (m ListExecute) {
|
||||
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("L"))
|
||||
m.Set(listid)
|
||||
m.Set(transacttime)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ListExecute, 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", "L", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m ListExecute) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m ListExecute) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListExecute) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m ListExecute) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m ListExecute) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// SetBidID sets BidID, Tag 390.
|
||||
func (m ListExecute) SetBidID(v string) {
|
||||
m.Set(field.NewBidID(v))
|
||||
}
|
||||
|
||||
// SetClientBidID sets ClientBidID, Tag 391.
|
||||
func (m ListExecute) SetClientBidID(v string) {
|
||||
m.Set(field.NewClientBidID(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m ListExecute) 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 ListExecute) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListExecute) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m ListExecute) 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 ListExecute) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBidID gets BidID, Tag 390.
|
||||
func (m ListExecute) GetBidID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.BidIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientBidID gets ClientBidID, Tag 391.
|
||||
func (m ListExecute) GetClientBidID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientBidIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m ListExecute) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m ListExecute) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListExecute) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m ListExecute) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m ListExecute) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// HasBidID returns true if BidID is present, Tag 390.
|
||||
func (m ListExecute) HasBidID() bool {
|
||||
return m.Has(tag.BidID)
|
||||
}
|
||||
|
||||
// HasClientBidID returns true if ClientBidID is present, Tag 391.
|
||||
func (m ListExecute) HasClientBidID() bool {
|
||||
return m.Has(tag.ClientBidID)
|
||||
}
|
||||
505
quickfix/gen/fix42/liststatus/ListStatus.generated.go
Normal file
505
quickfix/gen/fix42/liststatus/ListStatus.generated.go
Normal file
@ -0,0 +1,505 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package liststatus
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// ListStatus is the fix42 ListStatus type, MsgType = N.
|
||||
type ListStatus struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListStatus from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListStatus {
|
||||
return ListStatus{
|
||||
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 ListStatus) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ListStatus initialized with the required fields for ListStatus.
|
||||
func New(listid field.ListIDField, liststatustype field.ListStatusTypeField, norpts field.NoRptsField, listorderstatus field.ListOrderStatusField, rptseq field.RptSeqField, totnoorders field.TotNoOrdersField) (m ListStatus) {
|
||||
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("N"))
|
||||
m.Set(listid)
|
||||
m.Set(liststatustype)
|
||||
m.Set(norpts)
|
||||
m.Set(listorderstatus)
|
||||
m.Set(rptseq)
|
||||
m.Set(totnoorders)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ListStatus, 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", "N", r
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m ListStatus) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListStatus) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetTotNoOrders sets TotNoOrders, Tag 68.
|
||||
func (m ListStatus) SetTotNoOrders(v int) {
|
||||
m.Set(field.NewTotNoOrders(v))
|
||||
}
|
||||
|
||||
// SetNoOrders sets NoOrders, Tag 73.
|
||||
func (m ListStatus) SetNoOrders(f NoOrdersRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// SetNoRpts sets NoRpts, Tag 82.
|
||||
func (m ListStatus) SetNoRpts(v int) {
|
||||
m.Set(field.NewNoRpts(v))
|
||||
}
|
||||
|
||||
// SetRptSeq sets RptSeq, Tag 83.
|
||||
func (m ListStatus) SetRptSeq(v int) {
|
||||
m.Set(field.NewRptSeq(v))
|
||||
}
|
||||
|
||||
// SetListStatusType sets ListStatusType, Tag 429.
|
||||
func (m ListStatus) SetListStatusType(v enum.ListStatusType) {
|
||||
m.Set(field.NewListStatusType(v))
|
||||
}
|
||||
|
||||
// SetListOrderStatus sets ListOrderStatus, Tag 431.
|
||||
func (m ListStatus) SetListOrderStatus(v enum.ListOrderStatus) {
|
||||
m.Set(field.NewListOrderStatus(v))
|
||||
}
|
||||
|
||||
// SetListStatusText sets ListStatusText, Tag 444.
|
||||
func (m ListStatus) SetListStatusText(v string) {
|
||||
m.Set(field.NewListStatusText(v))
|
||||
}
|
||||
|
||||
// SetEncodedListStatusTextLen sets EncodedListStatusTextLen, Tag 445.
|
||||
func (m ListStatus) SetEncodedListStatusTextLen(v int) {
|
||||
m.Set(field.NewEncodedListStatusTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedListStatusText sets EncodedListStatusText, Tag 446.
|
||||
func (m ListStatus) SetEncodedListStatusText(v string) {
|
||||
m.Set(field.NewEncodedListStatusText(v))
|
||||
}
|
||||
|
||||
// GetTransactTime gets TransactTime, Tag 60.
|
||||
func (m ListStatus) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListStatus) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTotNoOrders gets TotNoOrders, Tag 68.
|
||||
func (m ListStatus) GetTotNoOrders() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.TotNoOrdersField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNoOrders gets NoOrders, Tag 73.
|
||||
func (m ListStatus) GetNoOrders() (NoOrdersRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoOrdersRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// GetNoRpts gets NoRpts, Tag 82.
|
||||
func (m ListStatus) GetNoRpts() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.NoRptsField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRptSeq gets RptSeq, Tag 83.
|
||||
func (m ListStatus) GetRptSeq() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.RptSeqField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListStatusType gets ListStatusType, Tag 429.
|
||||
func (m ListStatus) GetListStatusType() (v enum.ListStatusType, err quickfix.MessageRejectError) {
|
||||
var f field.ListStatusTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListOrderStatus gets ListOrderStatus, Tag 431.
|
||||
func (m ListStatus) GetListOrderStatus() (v enum.ListOrderStatus, err quickfix.MessageRejectError) {
|
||||
var f field.ListOrderStatusField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListStatusText gets ListStatusText, Tag 444.
|
||||
func (m ListStatus) GetListStatusText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListStatusTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedListStatusTextLen gets EncodedListStatusTextLen, Tag 445.
|
||||
func (m ListStatus) GetEncodedListStatusTextLen() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedListStatusTextLenField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedListStatusText gets EncodedListStatusText, Tag 446.
|
||||
func (m ListStatus) GetEncodedListStatusText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedListStatusTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m ListStatus) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListStatus) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasTotNoOrders returns true if TotNoOrders is present, Tag 68.
|
||||
func (m ListStatus) HasTotNoOrders() bool {
|
||||
return m.Has(tag.TotNoOrders)
|
||||
}
|
||||
|
||||
// HasNoOrders returns true if NoOrders is present, Tag 73.
|
||||
func (m ListStatus) HasNoOrders() bool {
|
||||
return m.Has(tag.NoOrders)
|
||||
}
|
||||
|
||||
// HasNoRpts returns true if NoRpts is present, Tag 82.
|
||||
func (m ListStatus) HasNoRpts() bool {
|
||||
return m.Has(tag.NoRpts)
|
||||
}
|
||||
|
||||
// HasRptSeq returns true if RptSeq is present, Tag 83.
|
||||
func (m ListStatus) HasRptSeq() bool {
|
||||
return m.Has(tag.RptSeq)
|
||||
}
|
||||
|
||||
// HasListStatusType returns true if ListStatusType is present, Tag 429.
|
||||
func (m ListStatus) HasListStatusType() bool {
|
||||
return m.Has(tag.ListStatusType)
|
||||
}
|
||||
|
||||
// HasListOrderStatus returns true if ListOrderStatus is present, Tag 431.
|
||||
func (m ListStatus) HasListOrderStatus() bool {
|
||||
return m.Has(tag.ListOrderStatus)
|
||||
}
|
||||
|
||||
// HasListStatusText returns true if ListStatusText is present, Tag 444.
|
||||
func (m ListStatus) HasListStatusText() bool {
|
||||
return m.Has(tag.ListStatusText)
|
||||
}
|
||||
|
||||
// HasEncodedListStatusTextLen returns true if EncodedListStatusTextLen is present, Tag 445.
|
||||
func (m ListStatus) HasEncodedListStatusTextLen() bool {
|
||||
return m.Has(tag.EncodedListStatusTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedListStatusText returns true if EncodedListStatusText is present, Tag 446.
|
||||
func (m ListStatus) HasEncodedListStatusText() bool {
|
||||
return m.Has(tag.EncodedListStatusText)
|
||||
}
|
||||
|
||||
// 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))
|
||||
}
|
||||
|
||||
// SetCumQty sets CumQty, Tag 14.
|
||||
func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCumQty(value, scale))
|
||||
}
|
||||
|
||||
// SetOrdStatus sets OrdStatus, Tag 39.
|
||||
func (m NoOrders) SetOrdStatus(v enum.OrdStatus) {
|
||||
m.Set(field.NewOrdStatus(v))
|
||||
}
|
||||
|
||||
// SetLeavesQty sets LeavesQty, Tag 151.
|
||||
func (m NoOrders) SetLeavesQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewLeavesQty(value, scale))
|
||||
}
|
||||
|
||||
// SetCxlQty sets CxlQty, Tag 84.
|
||||
func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCxlQty(value, scale))
|
||||
}
|
||||
|
||||
// SetAvgPx sets AvgPx, Tag 6.
|
||||
func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewAvgPx(value, scale))
|
||||
}
|
||||
|
||||
// SetOrdRejReason sets OrdRejReason, Tag 103.
|
||||
func (m NoOrders) SetOrdRejReason(v enum.OrdRejReason) {
|
||||
m.Set(field.NewOrdRejReason(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m NoOrders) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m NoOrders) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m NoOrders) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
// GetCumQty gets CumQty, Tag 14.
|
||||
func (m NoOrders) GetCumQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CumQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrdStatus gets OrdStatus, Tag 39.
|
||||
func (m NoOrders) GetOrdStatus() (v enum.OrdStatus, err quickfix.MessageRejectError) {
|
||||
var f field.OrdStatusField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLeavesQty gets LeavesQty, Tag 151.
|
||||
func (m NoOrders) GetLeavesQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.LeavesQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCxlQty gets CxlQty, Tag 84.
|
||||
func (m NoOrders) GetCxlQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CxlQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAvgPx gets AvgPx, Tag 6.
|
||||
func (m NoOrders) GetAvgPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.AvgPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrdRejReason gets OrdRejReason, Tag 103.
|
||||
func (m NoOrders) GetOrdRejReason() (v enum.OrdRejReason, err quickfix.MessageRejectError) {
|
||||
var f field.OrdRejReasonField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m NoOrders) 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 NoOrders) 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 NoOrders) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
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)
|
||||
}
|
||||
|
||||
// HasCumQty returns true if CumQty is present, Tag 14.
|
||||
func (m NoOrders) HasCumQty() bool {
|
||||
return m.Has(tag.CumQty)
|
||||
}
|
||||
|
||||
// HasOrdStatus returns true if OrdStatus is present, Tag 39.
|
||||
func (m NoOrders) HasOrdStatus() bool {
|
||||
return m.Has(tag.OrdStatus)
|
||||
}
|
||||
|
||||
// HasLeavesQty returns true if LeavesQty is present, Tag 151.
|
||||
func (m NoOrders) HasLeavesQty() bool {
|
||||
return m.Has(tag.LeavesQty)
|
||||
}
|
||||
|
||||
// HasCxlQty returns true if CxlQty is present, Tag 84.
|
||||
func (m NoOrders) HasCxlQty() bool {
|
||||
return m.Has(tag.CxlQty)
|
||||
}
|
||||
|
||||
// HasAvgPx returns true if AvgPx is present, Tag 6.
|
||||
func (m NoOrders) HasAvgPx() bool {
|
||||
return m.Has(tag.AvgPx)
|
||||
}
|
||||
|
||||
// HasOrdRejReason returns true if OrdRejReason is present, Tag 103.
|
||||
func (m NoOrders) HasOrdRejReason() bool {
|
||||
return m.Has(tag.OrdRejReason)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m NoOrders) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m NoOrders) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m NoOrders) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// 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.CumQty),
|
||||
quickfix.GroupElement(tag.OrdStatus),
|
||||
quickfix.GroupElement(tag.LeavesQty),
|
||||
quickfix.GroupElement(tag.CxlQty),
|
||||
quickfix.GroupElement(tag.AvgPx),
|
||||
quickfix.GroupElement(tag.OrdRejReason),
|
||||
quickfix.GroupElement(tag.Text),
|
||||
quickfix.GroupElement(tag.EncodedTextLen),
|
||||
quickfix.GroupElement(tag.EncodedText),
|
||||
},
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// 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)}
|
||||
}
|
||||
@ -0,0 +1,132 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package liststatusrequest
|
||||
|
||||
import (
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/fix42"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ListStatusRequest is the fix42 ListStatusRequest type, MsgType = M.
|
||||
type ListStatusRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListStatusRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListStatusRequest {
|
||||
return ListStatusRequest{
|
||||
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 ListStatusRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ListStatusRequest initialized with the required fields for ListStatusRequest.
|
||||
func New(listid field.ListIDField) (m ListStatusRequest) {
|
||||
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("M"))
|
||||
m.Set(listid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ListStatusRequest, 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", "M", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m ListStatusRequest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListStatusRequest) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m ListStatusRequest) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m ListStatusRequest) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m ListStatusRequest) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListStatusRequest) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m ListStatusRequest) 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 ListStatusRequest) 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 ListStatusRequest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListStatusRequest) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m ListStatusRequest) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m ListStatusRequest) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
687
quickfix/gen/fix42/liststrikeprice/ListStrikePrice.generated.go
Normal file
687
quickfix/gen/fix42/liststrikeprice/ListStrikePrice.generated.go
Normal file
@ -0,0 +1,687 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package liststrikeprice
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// ListStrikePrice is the fix42 ListStrikePrice type, MsgType = m.
|
||||
type ListStrikePrice struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListStrikePrice from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListStrikePrice {
|
||||
return ListStrikePrice{
|
||||
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 ListStrikePrice) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ListStrikePrice initialized with the required fields for ListStrikePrice.
|
||||
func New(listid field.ListIDField, totnostrikes field.TotNoStrikesField) (m ListStrikePrice) {
|
||||
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("m"))
|
||||
m.Set(listid)
|
||||
m.Set(totnostrikes)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ListStrikePrice, 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", "m", r
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListStrikePrice) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetTotNoStrikes sets TotNoStrikes, Tag 422.
|
||||
func (m ListStrikePrice) SetTotNoStrikes(v int) {
|
||||
m.Set(field.NewTotNoStrikes(v))
|
||||
}
|
||||
|
||||
// SetNoStrikes sets NoStrikes, Tag 428.
|
||||
func (m ListStrikePrice) SetNoStrikes(f NoStrikesRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListStrikePrice) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTotNoStrikes gets TotNoStrikes, Tag 422.
|
||||
func (m ListStrikePrice) GetTotNoStrikes() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.TotNoStrikesField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNoStrikes gets NoStrikes, Tag 428.
|
||||
func (m ListStrikePrice) GetNoStrikes() (NoStrikesRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoStrikesRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListStrikePrice) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasTotNoStrikes returns true if TotNoStrikes is present, Tag 422.
|
||||
func (m ListStrikePrice) HasTotNoStrikes() bool {
|
||||
return m.Has(tag.TotNoStrikes)
|
||||
}
|
||||
|
||||
// HasNoStrikes returns true if NoStrikes is present, Tag 428.
|
||||
func (m ListStrikePrice) HasNoStrikes() bool {
|
||||
return m.Has(tag.NoStrikes)
|
||||
}
|
||||
|
||||
// NoStrikes is a repeating group element, Tag 428.
|
||||
type NoStrikes struct {
|
||||
*quickfix.Group
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m NoStrikes) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m NoStrikes) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m NoStrikes) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m NoStrikes) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m NoStrikes) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m NoStrikes) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m NoStrikes) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m NoStrikes) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m NoStrikes) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetOptAttribute sets OptAttribute, Tag 206.
|
||||
func (m NoStrikes) SetOptAttribute(v string) {
|
||||
m.Set(field.NewOptAttribute(v))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m NoStrikes) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// SetCouponRate sets CouponRate, Tag 223.
|
||||
func (m NoStrikes) SetCouponRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
||||
func (m NoStrikes) SetSecurityExchange(v string) {
|
||||
m.Set(field.NewSecurityExchange(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m NoStrikes) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
||||
func (m NoStrikes) SetEncodedIssuerLen(v int) {
|
||||
m.Set(field.NewEncodedIssuerLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
||||
func (m NoStrikes) SetEncodedIssuer(v string) {
|
||||
m.Set(field.NewEncodedIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m NoStrikes) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
||||
func (m NoStrikes) SetEncodedSecurityDescLen(v int) {
|
||||
m.Set(field.NewEncodedSecurityDescLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
||||
func (m NoStrikes) SetEncodedSecurityDesc(v string) {
|
||||
m.Set(field.NewEncodedSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetPrevClosePx sets PrevClosePx, Tag 140.
|
||||
func (m NoStrikes) SetPrevClosePx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrevClosePx(value, scale))
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m NoStrikes) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m NoStrikes) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetPrice sets Price, Tag 44.
|
||||
func (m NoStrikes) SetPrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrice(value, scale))
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m NoStrikes) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m NoStrikes) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m NoStrikes) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m NoStrikes) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) 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 NoStrikes) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrevClosePx gets PrevClosePx, Tag 140.
|
||||
func (m NoStrikes) GetPrevClosePx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PrevClosePxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m NoStrikes) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m NoStrikes) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrice gets Price, Tag 44.
|
||||
func (m NoStrikes) GetPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m NoStrikes) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m NoStrikes) 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 NoStrikes) 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 NoStrikes) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m NoStrikes) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m NoStrikes) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m NoStrikes) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m NoStrikes) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m NoStrikes) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
||||
func (m NoStrikes) HasMaturityMonthYear() bool {
|
||||
return m.Has(tag.MaturityMonthYear)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m NoStrikes) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m NoStrikes) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m NoStrikes) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
||||
func (m NoStrikes) HasOptAttribute() bool {
|
||||
return m.Has(tag.OptAttribute)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m NoStrikes) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
||||
func (m NoStrikes) HasCouponRate() bool {
|
||||
return m.Has(tag.CouponRate)
|
||||
}
|
||||
|
||||
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
||||
func (m NoStrikes) HasSecurityExchange() bool {
|
||||
return m.Has(tag.SecurityExchange)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m NoStrikes) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
||||
func (m NoStrikes) HasEncodedIssuerLen() bool {
|
||||
return m.Has(tag.EncodedIssuerLen)
|
||||
}
|
||||
|
||||
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
||||
func (m NoStrikes) HasEncodedIssuer() bool {
|
||||
return m.Has(tag.EncodedIssuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m NoStrikes) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
||||
func (m NoStrikes) HasEncodedSecurityDescLen() bool {
|
||||
return m.Has(tag.EncodedSecurityDescLen)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
||||
func (m NoStrikes) HasEncodedSecurityDesc() bool {
|
||||
return m.Has(tag.EncodedSecurityDesc)
|
||||
}
|
||||
|
||||
// HasPrevClosePx returns true if PrevClosePx is present, Tag 140.
|
||||
func (m NoStrikes) HasPrevClosePx() bool {
|
||||
return m.Has(tag.PrevClosePx)
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m NoStrikes) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m NoStrikes) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasPrice returns true if Price is present, Tag 44.
|
||||
func (m NoStrikes) HasPrice() bool {
|
||||
return m.Has(tag.Price)
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m NoStrikes) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m NoStrikes) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m NoStrikes) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m NoStrikes) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// NoStrikesRepeatingGroup is a repeating group, Tag 428.
|
||||
type NoStrikesRepeatingGroup struct {
|
||||
*quickfix.RepeatingGroup
|
||||
}
|
||||
|
||||
// NewNoStrikesRepeatingGroup returns an initialized, NoStrikesRepeatingGroup.
|
||||
func NewNoStrikesRepeatingGroup() NoStrikesRepeatingGroup {
|
||||
return NoStrikesRepeatingGroup{
|
||||
quickfix.NewRepeatingGroup(
|
||||
tag.NoStrikes,
|
||||
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.PrevClosePx),
|
||||
quickfix.GroupElement(tag.ClOrdID),
|
||||
quickfix.GroupElement(tag.Side),
|
||||
quickfix.GroupElement(tag.Price),
|
||||
quickfix.GroupElement(tag.Currency),
|
||||
quickfix.GroupElement(tag.Text),
|
||||
quickfix.GroupElement(tag.EncodedTextLen),
|
||||
quickfix.GroupElement(tag.EncodedText),
|
||||
},
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// Add create and append a new NoStrikes to this group.
|
||||
func (m NoStrikesRepeatingGroup) Add() NoStrikes {
|
||||
g := m.RepeatingGroup.Add()
|
||||
return NoStrikes{g}
|
||||
}
|
||||
|
||||
// Get returns the ith NoStrikes in the NoStrikesRepeatinGroup.
|
||||
func (m NoStrikesRepeatingGroup) Get(i int) NoStrikes {
|
||||
return NoStrikes{m.RepeatingGroup.Get(i)}
|
||||
}
|
||||
261
quickfix/gen/fix42/logon/Logon.generated.go
Normal file
261
quickfix/gen/fix42/logon/Logon.generated.go
Normal file
@ -0,0 +1,261 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package logon
|
||||
|
||||
import (
|
||||
"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"
|
||||
)
|
||||
|
||||
// Logon is the fix42 Logon type, MsgType = A.
|
||||
type Logon struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Logon from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Logon {
|
||||
return Logon{
|
||||
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 Logon) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Logon initialized with the required fields for Logon.
|
||||
func New(encryptmethod field.EncryptMethodField, heartbtint field.HeartBtIntField) (m Logon) {
|
||||
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("A"))
|
||||
m.Set(encryptmethod)
|
||||
m.Set(heartbtint)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Logon, 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", "A", r
|
||||
}
|
||||
|
||||
// SetRawDataLength sets RawDataLength, Tag 95.
|
||||
func (m Logon) SetRawDataLength(v int) {
|
||||
m.Set(field.NewRawDataLength(v))
|
||||
}
|
||||
|
||||
// SetRawData sets RawData, Tag 96.
|
||||
func (m Logon) SetRawData(v string) {
|
||||
m.Set(field.NewRawData(v))
|
||||
}
|
||||
|
||||
// SetEncryptMethod sets EncryptMethod, Tag 98.
|
||||
func (m Logon) SetEncryptMethod(v enum.EncryptMethod) {
|
||||
m.Set(field.NewEncryptMethod(v))
|
||||
}
|
||||
|
||||
// SetHeartBtInt sets HeartBtInt, Tag 108.
|
||||
func (m Logon) SetHeartBtInt(v int) {
|
||||
m.Set(field.NewHeartBtInt(v))
|
||||
}
|
||||
|
||||
// SetResetSeqNumFlag sets ResetSeqNumFlag, Tag 141.
|
||||
func (m Logon) SetResetSeqNumFlag(v bool) {
|
||||
m.Set(field.NewResetSeqNumFlag(v))
|
||||
}
|
||||
|
||||
// SetMaxMessageSize sets MaxMessageSize, Tag 383.
|
||||
func (m Logon) SetMaxMessageSize(v int) {
|
||||
m.Set(field.NewMaxMessageSize(v))
|
||||
}
|
||||
|
||||
// SetNoMsgTypes sets NoMsgTypes, Tag 384.
|
||||
func (m Logon) SetNoMsgTypes(f NoMsgTypesRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// GetRawDataLength gets RawDataLength, Tag 95.
|
||||
func (m Logon) 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 Logon) GetRawData() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.RawDataField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncryptMethod gets EncryptMethod, Tag 98.
|
||||
func (m Logon) GetEncryptMethod() (v enum.EncryptMethod, err quickfix.MessageRejectError) {
|
||||
var f field.EncryptMethodField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetHeartBtInt gets HeartBtInt, Tag 108.
|
||||
func (m Logon) GetHeartBtInt() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.HeartBtIntField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetResetSeqNumFlag gets ResetSeqNumFlag, Tag 141.
|
||||
func (m Logon) GetResetSeqNumFlag() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.ResetSeqNumFlagField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaxMessageSize gets MaxMessageSize, Tag 383.
|
||||
func (m Logon) GetMaxMessageSize() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaxMessageSizeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNoMsgTypes gets NoMsgTypes, Tag 384.
|
||||
func (m Logon) GetNoMsgTypes() (NoMsgTypesRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoMsgTypesRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// HasRawDataLength returns true if RawDataLength is present, Tag 95.
|
||||
func (m Logon) HasRawDataLength() bool {
|
||||
return m.Has(tag.RawDataLength)
|
||||
}
|
||||
|
||||
// HasRawData returns true if RawData is present, Tag 96.
|
||||
func (m Logon) HasRawData() bool {
|
||||
return m.Has(tag.RawData)
|
||||
}
|
||||
|
||||
// HasEncryptMethod returns true if EncryptMethod is present, Tag 98.
|
||||
func (m Logon) HasEncryptMethod() bool {
|
||||
return m.Has(tag.EncryptMethod)
|
||||
}
|
||||
|
||||
// HasHeartBtInt returns true if HeartBtInt is present, Tag 108.
|
||||
func (m Logon) HasHeartBtInt() bool {
|
||||
return m.Has(tag.HeartBtInt)
|
||||
}
|
||||
|
||||
// HasResetSeqNumFlag returns true if ResetSeqNumFlag is present, Tag 141.
|
||||
func (m Logon) HasResetSeqNumFlag() bool {
|
||||
return m.Has(tag.ResetSeqNumFlag)
|
||||
}
|
||||
|
||||
// HasMaxMessageSize returns true if MaxMessageSize is present, Tag 383.
|
||||
func (m Logon) HasMaxMessageSize() bool {
|
||||
return m.Has(tag.MaxMessageSize)
|
||||
}
|
||||
|
||||
// HasNoMsgTypes returns true if NoMsgTypes is present, Tag 384.
|
||||
func (m Logon) HasNoMsgTypes() bool {
|
||||
return m.Has(tag.NoMsgTypes)
|
||||
}
|
||||
|
||||
// NoMsgTypes is a repeating group element, Tag 384.
|
||||
type NoMsgTypes struct {
|
||||
*quickfix.Group
|
||||
}
|
||||
|
||||
// SetRefMsgType sets RefMsgType, Tag 372.
|
||||
func (m NoMsgTypes) SetRefMsgType(v string) {
|
||||
m.Set(field.NewRefMsgType(v))
|
||||
}
|
||||
|
||||
// SetMsgDirection sets MsgDirection, Tag 385.
|
||||
func (m NoMsgTypes) SetMsgDirection(v enum.MsgDirection) {
|
||||
m.Set(field.NewMsgDirection(v))
|
||||
}
|
||||
|
||||
// GetRefMsgType gets RefMsgType, Tag 372.
|
||||
func (m NoMsgTypes) GetRefMsgType() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.RefMsgTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMsgDirection gets MsgDirection, Tag 385.
|
||||
func (m NoMsgTypes) GetMsgDirection() (v enum.MsgDirection, err quickfix.MessageRejectError) {
|
||||
var f field.MsgDirectionField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasRefMsgType returns true if RefMsgType is present, Tag 372.
|
||||
func (m NoMsgTypes) HasRefMsgType() bool {
|
||||
return m.Has(tag.RefMsgType)
|
||||
}
|
||||
|
||||
// HasMsgDirection returns true if MsgDirection is present, Tag 385.
|
||||
func (m NoMsgTypes) HasMsgDirection() bool {
|
||||
return m.Has(tag.MsgDirection)
|
||||
}
|
||||
|
||||
// NoMsgTypesRepeatingGroup is a repeating group, Tag 384.
|
||||
type NoMsgTypesRepeatingGroup struct {
|
||||
*quickfix.RepeatingGroup
|
||||
}
|
||||
|
||||
// NewNoMsgTypesRepeatingGroup returns an initialized, NoMsgTypesRepeatingGroup.
|
||||
func NewNoMsgTypesRepeatingGroup() NoMsgTypesRepeatingGroup {
|
||||
return NoMsgTypesRepeatingGroup{
|
||||
quickfix.NewRepeatingGroup(
|
||||
tag.NoMsgTypes,
|
||||
quickfix.GroupTemplate{
|
||||
quickfix.GroupElement(tag.RefMsgType),
|
||||
quickfix.GroupElement(tag.MsgDirection),
|
||||
},
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// Add create and append a new NoMsgTypes to this group.
|
||||
func (m NoMsgTypesRepeatingGroup) Add() NoMsgTypes {
|
||||
g := m.RepeatingGroup.Add()
|
||||
return NoMsgTypes{g}
|
||||
}
|
||||
|
||||
// Get returns the ith NoMsgTypes in the NoMsgTypesRepeatinGroup.
|
||||
func (m NoMsgTypesRepeatingGroup) Get(i int) NoMsgTypes {
|
||||
return NoMsgTypes{m.RepeatingGroup.Get(i)}
|
||||
}
|
||||
112
quickfix/gen/fix42/logout/Logout.generated.go
Normal file
112
quickfix/gen/fix42/logout/Logout.generated.go
Normal file
@ -0,0 +1,112 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package logout
|
||||
|
||||
import (
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/fix42"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Logout is the fix42 Logout type, MsgType = 5.
|
||||
type Logout struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Logout from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Logout {
|
||||
return Logout{
|
||||
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 Logout) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Logout initialized with the required fields for Logout.
|
||||
func New() (m Logout) {
|
||||
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("5"))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Logout, 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", "5", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m Logout) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m Logout) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m Logout) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m Logout) 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 Logout) 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 Logout) 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 Logout) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m Logout) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m Logout) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,674 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package marketdatarequest
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// 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{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix42.Trailer{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)}
|
||||
}
|
||||
@ -0,0 +1,152 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package marketdatarequestreject
|
||||
|
||||
import (
|
||||
"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"
|
||||
)
|
||||
|
||||
// MarketDataRequestReject is the fix42 MarketDataRequestReject type, MsgType = Y.
|
||||
type MarketDataRequestReject struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a MarketDataRequestReject from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) MarketDataRequestReject {
|
||||
return MarketDataRequestReject{
|
||||
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 MarketDataRequestReject) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a MarketDataRequestReject initialized with the required fields for MarketDataRequestReject.
|
||||
func New(mdreqid field.MDReqIDField) (m MarketDataRequestReject) {
|
||||
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("Y"))
|
||||
m.Set(mdreqid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg MarketDataRequestReject, 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", "Y", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m MarketDataRequestReject) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetMDReqID sets MDReqID, Tag 262.
|
||||
func (m MarketDataRequestReject) SetMDReqID(v string) {
|
||||
m.Set(field.NewMDReqID(v))
|
||||
}
|
||||
|
||||
// SetMDReqRejReason sets MDReqRejReason, Tag 281.
|
||||
func (m MarketDataRequestReject) SetMDReqRejReason(v enum.MDReqRejReason) {
|
||||
m.Set(field.NewMDReqRejReason(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m MarketDataRequestReject) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m MarketDataRequestReject) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m MarketDataRequestReject) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMDReqID gets MDReqID, Tag 262.
|
||||
func (m MarketDataRequestReject) GetMDReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MDReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMDReqRejReason gets MDReqRejReason, Tag 281.
|
||||
func (m MarketDataRequestReject) GetMDReqRejReason() (v enum.MDReqRejReason, err quickfix.MessageRejectError) {
|
||||
var f field.MDReqRejReasonField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m MarketDataRequestReject) 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 MarketDataRequestReject) 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 MarketDataRequestReject) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasMDReqID returns true if MDReqID is present, Tag 262.
|
||||
func (m MarketDataRequestReject) HasMDReqID() bool {
|
||||
return m.Has(tag.MDReqID)
|
||||
}
|
||||
|
||||
// HasMDReqRejReason returns true if MDReqRejReason is present, Tag 281.
|
||||
func (m MarketDataRequestReject) HasMDReqRejReason() bool {
|
||||
return m.Has(tag.MDReqRejReason)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m MarketDataRequestReject) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m MarketDataRequestReject) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
1415
quickfix/gen/fix42/massquote/MassQuote.generated.go
Normal file
1415
quickfix/gen/fix42/massquote/MassQuote.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
1921
quickfix/gen/fix42/neworderlist/NewOrderList.generated.go
Normal file
1921
quickfix/gen/fix42/neworderlist/NewOrderList.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
1535
quickfix/gen/fix42/newordersingle/NewOrderSingle.generated.go
Normal file
1535
quickfix/gen/fix42/newordersingle/NewOrderSingle.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
840
quickfix/gen/fix42/news/News.generated.go
Normal file
840
quickfix/gen/fix42/news/News.generated.go
Normal file
@ -0,0 +1,840 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package news
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// News is the fix42 News type, MsgType = B.
|
||||
type News struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a News from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) News {
|
||||
return News{
|
||||
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 News) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a News initialized with the required fields for News.
|
||||
func New(headline field.HeadlineField) (m News) {
|
||||
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("B"))
|
||||
m.Set(headline)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg News, 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", "B", r
|
||||
}
|
||||
|
||||
// SetLinesOfText sets LinesOfText, Tag 33.
|
||||
func (m News) SetLinesOfText(f LinesOfTextRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// SetOrigTime sets OrigTime, Tag 42.
|
||||
func (m News) SetOrigTime(v time.Time) {
|
||||
m.Set(field.NewOrigTime(v))
|
||||
}
|
||||
|
||||
// SetUrgency sets Urgency, Tag 61.
|
||||
func (m News) SetUrgency(v enum.Urgency) {
|
||||
m.Set(field.NewUrgency(v))
|
||||
}
|
||||
|
||||
// SetRawDataLength sets RawDataLength, Tag 95.
|
||||
func (m News) SetRawDataLength(v int) {
|
||||
m.Set(field.NewRawDataLength(v))
|
||||
}
|
||||
|
||||
// SetRawData sets RawData, Tag 96.
|
||||
func (m News) SetRawData(v string) {
|
||||
m.Set(field.NewRawData(v))
|
||||
}
|
||||
|
||||
// SetNoRelatedSym sets NoRelatedSym, Tag 146.
|
||||
func (m News) SetNoRelatedSym(f NoRelatedSymRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// SetHeadline sets Headline, Tag 148.
|
||||
func (m News) SetHeadline(v string) {
|
||||
m.Set(field.NewHeadline(v))
|
||||
}
|
||||
|
||||
// SetURLLink sets URLLink, Tag 149.
|
||||
func (m News) SetURLLink(v string) {
|
||||
m.Set(field.NewURLLink(v))
|
||||
}
|
||||
|
||||
// SetNoRoutingIDs sets NoRoutingIDs, Tag 215.
|
||||
func (m News) SetNoRoutingIDs(f NoRoutingIDsRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// SetEncodedHeadlineLen sets EncodedHeadlineLen, Tag 358.
|
||||
func (m News) SetEncodedHeadlineLen(v int) {
|
||||
m.Set(field.NewEncodedHeadlineLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedHeadline sets EncodedHeadline, Tag 359.
|
||||
func (m News) SetEncodedHeadline(v string) {
|
||||
m.Set(field.NewEncodedHeadline(v))
|
||||
}
|
||||
|
||||
// GetLinesOfText gets LinesOfText, Tag 33.
|
||||
func (m News) GetLinesOfText() (LinesOfTextRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewLinesOfTextRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// GetOrigTime gets OrigTime, Tag 42.
|
||||
func (m News) GetOrigTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.OrigTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetUrgency gets Urgency, Tag 61.
|
||||
func (m News) GetUrgency() (v enum.Urgency, err quickfix.MessageRejectError) {
|
||||
var f field.UrgencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRawDataLength gets RawDataLength, Tag 95.
|
||||
func (m News) 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 News) 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 News) GetNoRelatedSym() (NoRelatedSymRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoRelatedSymRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// GetHeadline gets Headline, Tag 148.
|
||||
func (m News) GetHeadline() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.HeadlineField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetURLLink gets URLLink, Tag 149.
|
||||
func (m News) GetURLLink() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.URLLinkField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNoRoutingIDs gets NoRoutingIDs, Tag 215.
|
||||
func (m News) GetNoRoutingIDs() (NoRoutingIDsRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoRoutingIDsRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// GetEncodedHeadlineLen gets EncodedHeadlineLen, Tag 358.
|
||||
func (m News) GetEncodedHeadlineLen() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedHeadlineLenField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedHeadline gets EncodedHeadline, Tag 359.
|
||||
func (m News) GetEncodedHeadline() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedHeadlineField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasLinesOfText returns true if LinesOfText is present, Tag 33.
|
||||
func (m News) HasLinesOfText() bool {
|
||||
return m.Has(tag.LinesOfText)
|
||||
}
|
||||
|
||||
// HasOrigTime returns true if OrigTime is present, Tag 42.
|
||||
func (m News) HasOrigTime() bool {
|
||||
return m.Has(tag.OrigTime)
|
||||
}
|
||||
|
||||
// HasUrgency returns true if Urgency is present, Tag 61.
|
||||
func (m News) HasUrgency() bool {
|
||||
return m.Has(tag.Urgency)
|
||||
}
|
||||
|
||||
// HasRawDataLength returns true if RawDataLength is present, Tag 95.
|
||||
func (m News) HasRawDataLength() bool {
|
||||
return m.Has(tag.RawDataLength)
|
||||
}
|
||||
|
||||
// HasRawData returns true if RawData is present, Tag 96.
|
||||
func (m News) HasRawData() bool {
|
||||
return m.Has(tag.RawData)
|
||||
}
|
||||
|
||||
// HasNoRelatedSym returns true if NoRelatedSym is present, Tag 146.
|
||||
func (m News) HasNoRelatedSym() bool {
|
||||
return m.Has(tag.NoRelatedSym)
|
||||
}
|
||||
|
||||
// HasHeadline returns true if Headline is present, Tag 148.
|
||||
func (m News) HasHeadline() bool {
|
||||
return m.Has(tag.Headline)
|
||||
}
|
||||
|
||||
// HasURLLink returns true if URLLink is present, Tag 149.
|
||||
func (m News) HasURLLink() bool {
|
||||
return m.Has(tag.URLLink)
|
||||
}
|
||||
|
||||
// HasNoRoutingIDs returns true if NoRoutingIDs is present, Tag 215.
|
||||
func (m News) HasNoRoutingIDs() bool {
|
||||
return m.Has(tag.NoRoutingIDs)
|
||||
}
|
||||
|
||||
// HasEncodedHeadlineLen returns true if EncodedHeadlineLen is present, Tag 358.
|
||||
func (m News) HasEncodedHeadlineLen() bool {
|
||||
return m.Has(tag.EncodedHeadlineLen)
|
||||
}
|
||||
|
||||
// HasEncodedHeadline returns true if EncodedHeadline is present, Tag 359.
|
||||
func (m News) HasEncodedHeadline() bool {
|
||||
return m.Has(tag.EncodedHeadline)
|
||||
}
|
||||
|
||||
// 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)}
|
||||
}
|
||||
@ -0,0 +1,348 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package ordercancelreject
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"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"
|
||||
)
|
||||
|
||||
// OrderCancelReject is the fix42 OrderCancelReject type, MsgType = 9.
|
||||
type OrderCancelReject struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a OrderCancelReject from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) OrderCancelReject {
|
||||
return OrderCancelReject{
|
||||
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 OrderCancelReject) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a OrderCancelReject initialized with the required fields for OrderCancelReject.
|
||||
func New(orderid field.OrderIDField, clordid field.ClOrdIDField, origclordid field.OrigClOrdIDField, ordstatus field.OrdStatusField, cxlrejresponseto field.CxlRejResponseToField) (m OrderCancelReject) {
|
||||
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("9"))
|
||||
m.Set(orderid)
|
||||
m.Set(clordid)
|
||||
m.Set(origclordid)
|
||||
m.Set(ordstatus)
|
||||
m.Set(cxlrejresponseto)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg OrderCancelReject, 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", "9", r
|
||||
}
|
||||
|
||||
// SetAccount sets Account, Tag 1.
|
||||
func (m OrderCancelReject) SetAccount(v string) {
|
||||
m.Set(field.NewAccount(v))
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m OrderCancelReject) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetOrderID sets OrderID, Tag 37.
|
||||
func (m OrderCancelReject) SetOrderID(v string) {
|
||||
m.Set(field.NewOrderID(v))
|
||||
}
|
||||
|
||||
// SetOrdStatus sets OrdStatus, Tag 39.
|
||||
func (m OrderCancelReject) SetOrdStatus(v enum.OrdStatus) {
|
||||
m.Set(field.NewOrdStatus(v))
|
||||
}
|
||||
|
||||
// SetOrigClOrdID sets OrigClOrdID, Tag 41.
|
||||
func (m OrderCancelReject) SetOrigClOrdID(v string) {
|
||||
m.Set(field.NewOrigClOrdID(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m OrderCancelReject) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m OrderCancelReject) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m OrderCancelReject) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m OrderCancelReject) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetCxlRejReason sets CxlRejReason, Tag 102.
|
||||
func (m OrderCancelReject) SetCxlRejReason(v enum.CxlRejReason) {
|
||||
m.Set(field.NewCxlRejReason(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m OrderCancelReject) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// SetSecondaryOrderID sets SecondaryOrderID, Tag 198.
|
||||
func (m OrderCancelReject) SetSecondaryOrderID(v string) {
|
||||
m.Set(field.NewSecondaryOrderID(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m OrderCancelReject) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m OrderCancelReject) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// SetCxlRejResponseTo sets CxlRejResponseTo, Tag 434.
|
||||
func (m OrderCancelReject) SetCxlRejResponseTo(v enum.CxlRejResponseTo) {
|
||||
m.Set(field.NewCxlRejResponseTo(v))
|
||||
}
|
||||
|
||||
// GetAccount gets Account, Tag 1.
|
||||
func (m OrderCancelReject) GetAccount() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AccountField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m OrderCancelReject) 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 OrderCancelReject) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrdStatus gets OrdStatus, Tag 39.
|
||||
func (m OrderCancelReject) GetOrdStatus() (v enum.OrdStatus, err quickfix.MessageRejectError) {
|
||||
var f field.OrdStatusField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrigClOrdID gets OrigClOrdID, Tag 41.
|
||||
func (m OrderCancelReject) GetOrigClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrigClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m OrderCancelReject) 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 OrderCancelReject) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m OrderCancelReject) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m OrderCancelReject) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCxlRejReason gets CxlRejReason, Tag 102.
|
||||
func (m OrderCancelReject) GetCxlRejReason() (v enum.CxlRejReason, err quickfix.MessageRejectError) {
|
||||
var f field.CxlRejReasonField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m OrderCancelReject) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecondaryOrderID gets SecondaryOrderID, Tag 198.
|
||||
func (m OrderCancelReject) GetSecondaryOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecondaryOrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m OrderCancelReject) 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 OrderCancelReject) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCxlRejResponseTo gets CxlRejResponseTo, Tag 434.
|
||||
func (m OrderCancelReject) GetCxlRejResponseTo() (v enum.CxlRejResponseTo, err quickfix.MessageRejectError) {
|
||||
var f field.CxlRejResponseToField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasAccount returns true if Account is present, Tag 1.
|
||||
func (m OrderCancelReject) HasAccount() bool {
|
||||
return m.Has(tag.Account)
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m OrderCancelReject) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasOrderID returns true if OrderID is present, Tag 37.
|
||||
func (m OrderCancelReject) HasOrderID() bool {
|
||||
return m.Has(tag.OrderID)
|
||||
}
|
||||
|
||||
// HasOrdStatus returns true if OrdStatus is present, Tag 39.
|
||||
func (m OrderCancelReject) HasOrdStatus() bool {
|
||||
return m.Has(tag.OrdStatus)
|
||||
}
|
||||
|
||||
// HasOrigClOrdID returns true if OrigClOrdID is present, Tag 41.
|
||||
func (m OrderCancelReject) HasOrigClOrdID() bool {
|
||||
return m.Has(tag.OrigClOrdID)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m OrderCancelReject) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m OrderCancelReject) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m OrderCancelReject) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m OrderCancelReject) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasCxlRejReason returns true if CxlRejReason is present, Tag 102.
|
||||
func (m OrderCancelReject) HasCxlRejReason() bool {
|
||||
return m.Has(tag.CxlRejReason)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m OrderCancelReject) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
|
||||
// HasSecondaryOrderID returns true if SecondaryOrderID is present, Tag 198.
|
||||
func (m OrderCancelReject) HasSecondaryOrderID() bool {
|
||||
return m.Has(tag.SecondaryOrderID)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m OrderCancelReject) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m OrderCancelReject) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// HasCxlRejResponseTo returns true if CxlRejResponseTo is present, Tag 434.
|
||||
func (m OrderCancelReject) HasCxlRejResponseTo() bool {
|
||||
return m.Has(tag.CxlRejResponseTo)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,730 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package ordercancelrequest
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// OrderCancelRequest is the fix42 OrderCancelRequest type, MsgType = F.
|
||||
type OrderCancelRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a OrderCancelRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) OrderCancelRequest {
|
||||
return OrderCancelRequest{
|
||||
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 OrderCancelRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a OrderCancelRequest initialized with the required fields for OrderCancelRequest.
|
||||
func New(origclordid field.OrigClOrdIDField, clordid field.ClOrdIDField, symbol field.SymbolField, side field.SideField, transacttime field.TransactTimeField) (m OrderCancelRequest) {
|
||||
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("F"))
|
||||
m.Set(origclordid)
|
||||
m.Set(clordid)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
m.Set(transacttime)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg OrderCancelRequest, 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", "F", r
|
||||
}
|
||||
|
||||
// SetAccount sets Account, Tag 1.
|
||||
func (m OrderCancelRequest) SetAccount(v string) {
|
||||
m.Set(field.NewAccount(v))
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m OrderCancelRequest) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m OrderCancelRequest) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetOrderID sets OrderID, Tag 37.
|
||||
func (m OrderCancelRequest) SetOrderID(v string) {
|
||||
m.Set(field.NewOrderID(v))
|
||||
}
|
||||
|
||||
// SetOrderQty sets OrderQty, Tag 38.
|
||||
func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetOrigClOrdID sets OrigClOrdID, Tag 41.
|
||||
func (m OrderCancelRequest) SetOrigClOrdID(v string) {
|
||||
m.Set(field.NewOrigClOrdID(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m OrderCancelRequest) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m OrderCancelRequest) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m OrderCancelRequest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m OrderCancelRequest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m OrderCancelRequest) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m OrderCancelRequest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m OrderCancelRequest) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m OrderCancelRequest) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m OrderCancelRequest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m OrderCancelRequest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m OrderCancelRequest) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// SetCashOrderQty sets CashOrderQty, Tag 152.
|
||||
func (m OrderCancelRequest) SetCashOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCashOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m OrderCancelRequest) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m OrderCancelRequest) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m OrderCancelRequest) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m OrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m OrderCancelRequest) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(v))
|
||||
}
|
||||
|
||||
// SetOptAttribute sets OptAttribute, Tag 206.
|
||||
func (m OrderCancelRequest) SetOptAttribute(v string) {
|
||||
m.Set(field.NewOptAttribute(v))
|
||||
}
|
||||
|
||||
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
||||
func (m OrderCancelRequest) SetSecurityExchange(v string) {
|
||||
m.Set(field.NewSecurityExchange(v))
|
||||
}
|
||||
|
||||
// SetCouponRate sets CouponRate, Tag 223.
|
||||
func (m OrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m OrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
||||
func (m OrderCancelRequest) SetEncodedIssuerLen(v int) {
|
||||
m.Set(field.NewEncodedIssuerLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
||||
func (m OrderCancelRequest) SetEncodedIssuer(v string) {
|
||||
m.Set(field.NewEncodedIssuer(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
||||
func (m OrderCancelRequest) SetEncodedSecurityDescLen(v int) {
|
||||
m.Set(field.NewEncodedSecurityDescLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
||||
func (m OrderCancelRequest) SetEncodedSecurityDesc(v string) {
|
||||
m.Set(field.NewEncodedSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m OrderCancelRequest) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m OrderCancelRequest) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// SetComplianceID sets ComplianceID, Tag 376.
|
||||
func (m OrderCancelRequest) SetComplianceID(v string) {
|
||||
m.Set(field.NewComplianceID(v))
|
||||
}
|
||||
|
||||
// SetSolicitedFlag sets SolicitedFlag, Tag 377.
|
||||
func (m OrderCancelRequest) SetSolicitedFlag(v bool) {
|
||||
m.Set(field.NewSolicitedFlag(v))
|
||||
}
|
||||
|
||||
// GetAccount gets Account, Tag 1.
|
||||
func (m OrderCancelRequest) GetAccount() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AccountField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m OrderCancelRequest) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m OrderCancelRequest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderID gets OrderID, Tag 37.
|
||||
func (m OrderCancelRequest) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty gets OrderQty, Tag 38.
|
||||
func (m OrderCancelRequest) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrigClOrdID gets OrigClOrdID, Tag 41.
|
||||
func (m OrderCancelRequest) GetOrigClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrigClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m OrderCancelRequest) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m OrderCancelRequest) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m OrderCancelRequest) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m OrderCancelRequest) 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 OrderCancelRequest) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m OrderCancelRequest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m OrderCancelRequest) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m OrderCancelRequest) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m OrderCancelRequest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m OrderCancelRequest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m OrderCancelRequest) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCashOrderQty gets CashOrderQty, Tag 152.
|
||||
func (m OrderCancelRequest) GetCashOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CashOrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m OrderCancelRequest) 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 OrderCancelRequest) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityMonthYearField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPutOrCall gets PutOrCall, Tag 201.
|
||||
func (m OrderCancelRequest) 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 OrderCancelRequest) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StrikePriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityDay gets MaturityDay, Tag 205.
|
||||
func (m OrderCancelRequest) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityDayField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOptAttribute gets OptAttribute, Tag 206.
|
||||
func (m OrderCancelRequest) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OptAttributeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityExchange gets SecurityExchange, Tag 207.
|
||||
func (m OrderCancelRequest) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityExchangeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCouponRate gets CouponRate, Tag 223.
|
||||
func (m OrderCancelRequest) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CouponRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetContractMultiplier gets ContractMultiplier, Tag 231.
|
||||
func (m OrderCancelRequest) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.ContractMultiplierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348.
|
||||
func (m OrderCancelRequest) 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 OrderCancelRequest) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedIssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350.
|
||||
func (m OrderCancelRequest) 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 OrderCancelRequest) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m OrderCancelRequest) 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 OrderCancelRequest) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetComplianceID gets ComplianceID, Tag 376.
|
||||
func (m OrderCancelRequest) GetComplianceID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ComplianceIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSolicitedFlag gets SolicitedFlag, Tag 377.
|
||||
func (m OrderCancelRequest) GetSolicitedFlag() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.SolicitedFlagField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasAccount returns true if Account is present, Tag 1.
|
||||
func (m OrderCancelRequest) HasAccount() bool {
|
||||
return m.Has(tag.Account)
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m OrderCancelRequest) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m OrderCancelRequest) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasOrderID returns true if OrderID is present, Tag 37.
|
||||
func (m OrderCancelRequest) HasOrderID() bool {
|
||||
return m.Has(tag.OrderID)
|
||||
}
|
||||
|
||||
// HasOrderQty returns true if OrderQty is present, Tag 38.
|
||||
func (m OrderCancelRequest) HasOrderQty() bool {
|
||||
return m.Has(tag.OrderQty)
|
||||
}
|
||||
|
||||
// HasOrigClOrdID returns true if OrigClOrdID is present, Tag 41.
|
||||
func (m OrderCancelRequest) HasOrigClOrdID() bool {
|
||||
return m.Has(tag.OrigClOrdID)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m OrderCancelRequest) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m OrderCancelRequest) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m OrderCancelRequest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m OrderCancelRequest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m OrderCancelRequest) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m OrderCancelRequest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m OrderCancelRequest) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m OrderCancelRequest) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m OrderCancelRequest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m OrderCancelRequest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m OrderCancelRequest) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
|
||||
// HasCashOrderQty returns true if CashOrderQty is present, Tag 152.
|
||||
func (m OrderCancelRequest) HasCashOrderQty() bool {
|
||||
return m.Has(tag.CashOrderQty)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m OrderCancelRequest) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
||||
func (m OrderCancelRequest) HasMaturityMonthYear() bool {
|
||||
return m.Has(tag.MaturityMonthYear)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m OrderCancelRequest) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m OrderCancelRequest) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m OrderCancelRequest) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
||||
func (m OrderCancelRequest) HasOptAttribute() bool {
|
||||
return m.Has(tag.OptAttribute)
|
||||
}
|
||||
|
||||
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
||||
func (m OrderCancelRequest) HasSecurityExchange() bool {
|
||||
return m.Has(tag.SecurityExchange)
|
||||
}
|
||||
|
||||
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
||||
func (m OrderCancelRequest) HasCouponRate() bool {
|
||||
return m.Has(tag.CouponRate)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m OrderCancelRequest) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
||||
func (m OrderCancelRequest) HasEncodedIssuerLen() bool {
|
||||
return m.Has(tag.EncodedIssuerLen)
|
||||
}
|
||||
|
||||
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
||||
func (m OrderCancelRequest) HasEncodedIssuer() bool {
|
||||
return m.Has(tag.EncodedIssuer)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
||||
func (m OrderCancelRequest) HasEncodedSecurityDescLen() bool {
|
||||
return m.Has(tag.EncodedSecurityDescLen)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
||||
func (m OrderCancelRequest) HasEncodedSecurityDesc() bool {
|
||||
return m.Has(tag.EncodedSecurityDesc)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m OrderCancelRequest) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m OrderCancelRequest) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// HasComplianceID returns true if ComplianceID is present, Tag 376.
|
||||
func (m OrderCancelRequest) HasComplianceID() bool {
|
||||
return m.Has(tag.ComplianceID)
|
||||
}
|
||||
|
||||
// HasSolicitedFlag returns true if SolicitedFlag is present, Tag 377.
|
||||
func (m OrderCancelRequest) HasSolicitedFlag() bool {
|
||||
return m.Has(tag.SolicitedFlag)
|
||||
}
|
||||
@ -0,0 +1,536 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package orderstatusrequest
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// OrderStatusRequest is the fix42 OrderStatusRequest type, MsgType = H.
|
||||
type OrderStatusRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a OrderStatusRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) OrderStatusRequest {
|
||||
return OrderStatusRequest{
|
||||
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 OrderStatusRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a OrderStatusRequest initialized with the required fields for OrderStatusRequest.
|
||||
func New(clordid field.ClOrdIDField, symbol field.SymbolField, side field.SideField) (m OrderStatusRequest) {
|
||||
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("H"))
|
||||
m.Set(clordid)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg OrderStatusRequest, 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", "H", r
|
||||
}
|
||||
|
||||
// SetAccount sets Account, Tag 1.
|
||||
func (m OrderStatusRequest) SetAccount(v string) {
|
||||
m.Set(field.NewAccount(v))
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m OrderStatusRequest) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m OrderStatusRequest) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetOrderID sets OrderID, Tag 37.
|
||||
func (m OrderStatusRequest) SetOrderID(v string) {
|
||||
m.Set(field.NewOrderID(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m OrderStatusRequest) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m OrderStatusRequest) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m OrderStatusRequest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m OrderStatusRequest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m OrderStatusRequest) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m OrderStatusRequest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m OrderStatusRequest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m OrderStatusRequest) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m OrderStatusRequest) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m OrderStatusRequest) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m OrderStatusRequest) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m OrderStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m OrderStatusRequest) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(v))
|
||||
}
|
||||
|
||||
// SetOptAttribute sets OptAttribute, Tag 206.
|
||||
func (m OrderStatusRequest) SetOptAttribute(v string) {
|
||||
m.Set(field.NewOptAttribute(v))
|
||||
}
|
||||
|
||||
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
||||
func (m OrderStatusRequest) SetSecurityExchange(v string) {
|
||||
m.Set(field.NewSecurityExchange(v))
|
||||
}
|
||||
|
||||
// SetCouponRate sets CouponRate, Tag 223.
|
||||
func (m OrderStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m OrderStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
||||
func (m OrderStatusRequest) SetEncodedIssuerLen(v int) {
|
||||
m.Set(field.NewEncodedIssuerLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
||||
func (m OrderStatusRequest) SetEncodedIssuer(v string) {
|
||||
m.Set(field.NewEncodedIssuer(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
||||
func (m OrderStatusRequest) SetEncodedSecurityDescLen(v int) {
|
||||
m.Set(field.NewEncodedSecurityDescLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
||||
func (m OrderStatusRequest) SetEncodedSecurityDesc(v string) {
|
||||
m.Set(field.NewEncodedSecurityDesc(v))
|
||||
}
|
||||
|
||||
// GetAccount gets Account, Tag 1.
|
||||
func (m OrderStatusRequest) GetAccount() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AccountField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m OrderStatusRequest) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m OrderStatusRequest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderID gets OrderID, Tag 37.
|
||||
func (m OrderStatusRequest) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m OrderStatusRequest) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m OrderStatusRequest) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m OrderStatusRequest) 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 OrderStatusRequest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m OrderStatusRequest) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m OrderStatusRequest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m OrderStatusRequest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m OrderStatusRequest) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m OrderStatusRequest) 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 OrderStatusRequest) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityMonthYearField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPutOrCall gets PutOrCall, Tag 201.
|
||||
func (m OrderStatusRequest) 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 OrderStatusRequest) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StrikePriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityDay gets MaturityDay, Tag 205.
|
||||
func (m OrderStatusRequest) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityDayField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOptAttribute gets OptAttribute, Tag 206.
|
||||
func (m OrderStatusRequest) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OptAttributeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityExchange gets SecurityExchange, Tag 207.
|
||||
func (m OrderStatusRequest) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityExchangeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCouponRate gets CouponRate, Tag 223.
|
||||
func (m OrderStatusRequest) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CouponRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetContractMultiplier gets ContractMultiplier, Tag 231.
|
||||
func (m OrderStatusRequest) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.ContractMultiplierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348.
|
||||
func (m OrderStatusRequest) 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 OrderStatusRequest) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedIssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350.
|
||||
func (m OrderStatusRequest) 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 OrderStatusRequest) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasAccount returns true if Account is present, Tag 1.
|
||||
func (m OrderStatusRequest) HasAccount() bool {
|
||||
return m.Has(tag.Account)
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m OrderStatusRequest) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m OrderStatusRequest) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasOrderID returns true if OrderID is present, Tag 37.
|
||||
func (m OrderStatusRequest) HasOrderID() bool {
|
||||
return m.Has(tag.OrderID)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m OrderStatusRequest) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m OrderStatusRequest) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m OrderStatusRequest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m OrderStatusRequest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m OrderStatusRequest) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m OrderStatusRequest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m OrderStatusRequest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m OrderStatusRequest) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m OrderStatusRequest) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
||||
func (m OrderStatusRequest) HasMaturityMonthYear() bool {
|
||||
return m.Has(tag.MaturityMonthYear)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m OrderStatusRequest) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m OrderStatusRequest) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m OrderStatusRequest) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
||||
func (m OrderStatusRequest) HasOptAttribute() bool {
|
||||
return m.Has(tag.OptAttribute)
|
||||
}
|
||||
|
||||
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
||||
func (m OrderStatusRequest) HasSecurityExchange() bool {
|
||||
return m.Has(tag.SecurityExchange)
|
||||
}
|
||||
|
||||
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
||||
func (m OrderStatusRequest) HasCouponRate() bool {
|
||||
return m.Has(tag.CouponRate)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m OrderStatusRequest) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
||||
func (m OrderStatusRequest) HasEncodedIssuerLen() bool {
|
||||
return m.Has(tag.EncodedIssuerLen)
|
||||
}
|
||||
|
||||
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
||||
func (m OrderStatusRequest) HasEncodedIssuer() bool {
|
||||
return m.Has(tag.EncodedIssuer)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
||||
func (m OrderStatusRequest) HasEncodedSecurityDescLen() bool {
|
||||
return m.Has(tag.EncodedSecurityDescLen)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
||||
func (m OrderStatusRequest) HasEncodedSecurityDesc() bool {
|
||||
return m.Has(tag.EncodedSecurityDesc)
|
||||
}
|
||||
784
quickfix/gen/fix42/quote/Quote.generated.go
Normal file
784
quickfix/gen/fix42/quote/Quote.generated.go
Normal file
@ -0,0 +1,784 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package quote
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// Quote is the fix42 Quote type, MsgType = S.
|
||||
type Quote struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Quote from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Quote {
|
||||
return Quote{
|
||||
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 Quote) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Quote initialized with the required fields for Quote.
|
||||
func New(quoteid field.QuoteIDField, symbol field.SymbolField) (m Quote) {
|
||||
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("S"))
|
||||
m.Set(quoteid)
|
||||
m.Set(symbol)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Quote, 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", "S", r
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m Quote) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m Quote) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetOrdType sets OrdType, Tag 40.
|
||||
func (m Quote) SetOrdType(v enum.OrdType) {
|
||||
m.Set(field.NewOrdType(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m Quote) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m Quote) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m Quote) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetValidUntilTime sets ValidUntilTime, Tag 62.
|
||||
func (m Quote) SetValidUntilTime(v time.Time) {
|
||||
m.Set(field.NewValidUntilTime(v))
|
||||
}
|
||||
|
||||
// SetFutSettDate sets FutSettDate, Tag 64.
|
||||
func (m Quote) SetFutSettDate(v string) {
|
||||
m.Set(field.NewFutSettDate(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m Quote) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m Quote) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m Quote) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetQuoteID sets QuoteID, Tag 117.
|
||||
func (m Quote) SetQuoteID(v string) {
|
||||
m.Set(field.NewQuoteID(v))
|
||||
}
|
||||
|
||||
// SetQuoteReqID sets QuoteReqID, Tag 131.
|
||||
func (m Quote) SetQuoteReqID(v string) {
|
||||
m.Set(field.NewQuoteReqID(v))
|
||||
}
|
||||
|
||||
// SetBidPx sets BidPx, Tag 132.
|
||||
func (m Quote) SetBidPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewBidPx(value, scale))
|
||||
}
|
||||
|
||||
// SetOfferPx sets OfferPx, Tag 133.
|
||||
func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOfferPx(value, scale))
|
||||
}
|
||||
|
||||
// SetBidSize sets BidSize, Tag 134.
|
||||
func (m Quote) SetBidSize(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewBidSize(value, scale))
|
||||
}
|
||||
|
||||
// SetOfferSize sets OfferSize, Tag 135.
|
||||
func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOfferSize(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m Quote) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetBidSpotRate sets BidSpotRate, Tag 188.
|
||||
func (m Quote) SetBidSpotRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewBidSpotRate(value, scale))
|
||||
}
|
||||
|
||||
// SetBidForwardPoints sets BidForwardPoints, Tag 189.
|
||||
func (m Quote) SetBidForwardPoints(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewBidForwardPoints(value, scale))
|
||||
}
|
||||
|
||||
// SetOfferSpotRate sets OfferSpotRate, Tag 190.
|
||||
func (m Quote) SetOfferSpotRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOfferSpotRate(value, scale))
|
||||
}
|
||||
|
||||
// SetOfferForwardPoints sets OfferForwardPoints, Tag 191.
|
||||
func (m Quote) SetOfferForwardPoints(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOfferForwardPoints(value, scale))
|
||||
}
|
||||
|
||||
// SetOrderQty2 sets OrderQty2, Tag 192.
|
||||
func (m Quote) SetOrderQty2(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty2(value, scale))
|
||||
}
|
||||
|
||||
// SetFutSettDate2 sets FutSettDate2, Tag 193.
|
||||
func (m Quote) SetFutSettDate2(v string) {
|
||||
m.Set(field.NewFutSettDate2(v))
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m Quote) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m Quote) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m Quote) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m Quote) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(v))
|
||||
}
|
||||
|
||||
// SetOptAttribute sets OptAttribute, Tag 206.
|
||||
func (m Quote) SetOptAttribute(v string) {
|
||||
m.Set(field.NewOptAttribute(v))
|
||||
}
|
||||
|
||||
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
||||
func (m Quote) SetSecurityExchange(v string) {
|
||||
m.Set(field.NewSecurityExchange(v))
|
||||
}
|
||||
|
||||
// SetCouponRate sets CouponRate, Tag 223.
|
||||
func (m Quote) SetCouponRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m Quote) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// SetQuoteResponseLevel sets QuoteResponseLevel, Tag 301.
|
||||
func (m Quote) SetQuoteResponseLevel(v enum.QuoteResponseLevel) {
|
||||
m.Set(field.NewQuoteResponseLevel(v))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m Quote) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
||||
func (m Quote) SetEncodedIssuerLen(v int) {
|
||||
m.Set(field.NewEncodedIssuerLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
||||
func (m Quote) SetEncodedIssuer(v string) {
|
||||
m.Set(field.NewEncodedIssuer(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
||||
func (m Quote) SetEncodedSecurityDescLen(v int) {
|
||||
m.Set(field.NewEncodedSecurityDescLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
||||
func (m Quote) SetEncodedSecurityDesc(v string) {
|
||||
m.Set(field.NewEncodedSecurityDesc(v))
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m Quote) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m Quote) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrdType gets OrdType, Tag 40.
|
||||
func (m Quote) GetOrdType() (v enum.OrdType, err quickfix.MessageRejectError) {
|
||||
var f field.OrdTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m Quote) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m Quote) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTransactTime gets TransactTime, Tag 60.
|
||||
func (m Quote) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetValidUntilTime gets ValidUntilTime, Tag 62.
|
||||
func (m Quote) GetValidUntilTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.ValidUntilTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFutSettDate gets FutSettDate, Tag 64.
|
||||
func (m Quote) GetFutSettDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.FutSettDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m Quote) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m Quote) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m Quote) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetQuoteID gets QuoteID, Tag 117.
|
||||
func (m Quote) 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 Quote) GetQuoteReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.QuoteReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBidPx gets BidPx, Tag 132.
|
||||
func (m Quote) GetBidPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.BidPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOfferPx gets OfferPx, Tag 133.
|
||||
func (m Quote) GetOfferPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OfferPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBidSize gets BidSize, Tag 134.
|
||||
func (m Quote) GetBidSize() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.BidSizeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOfferSize gets OfferSize, Tag 135.
|
||||
func (m Quote) GetOfferSize() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OfferSizeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m Quote) GetSecurityType() (v enum.SecurityType, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBidSpotRate gets BidSpotRate, Tag 188.
|
||||
func (m Quote) GetBidSpotRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.BidSpotRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBidForwardPoints gets BidForwardPoints, Tag 189.
|
||||
func (m Quote) GetBidForwardPoints() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.BidForwardPointsField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOfferSpotRate gets OfferSpotRate, Tag 190.
|
||||
func (m Quote) GetOfferSpotRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OfferSpotRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOfferForwardPoints gets OfferForwardPoints, Tag 191.
|
||||
func (m Quote) GetOfferForwardPoints() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OfferForwardPointsField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty2 gets OrderQty2, Tag 192.
|
||||
func (m Quote) GetOrderQty2() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQty2Field
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFutSettDate2 gets FutSettDate2, Tag 193.
|
||||
func (m Quote) GetFutSettDate2() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.FutSettDate2Field
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityMonthYear gets MaturityMonthYear, Tag 200.
|
||||
func (m Quote) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityMonthYearField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPutOrCall gets PutOrCall, Tag 201.
|
||||
func (m Quote) 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 Quote) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StrikePriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityDay gets MaturityDay, Tag 205.
|
||||
func (m Quote) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityDayField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOptAttribute gets OptAttribute, Tag 206.
|
||||
func (m Quote) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OptAttributeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityExchange gets SecurityExchange, Tag 207.
|
||||
func (m Quote) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityExchangeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCouponRate gets CouponRate, Tag 223.
|
||||
func (m Quote) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CouponRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetContractMultiplier gets ContractMultiplier, Tag 231.
|
||||
func (m Quote) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.ContractMultiplierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetQuoteResponseLevel gets QuoteResponseLevel, Tag 301.
|
||||
func (m Quote) 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 Quote) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
||||
var f field.TradingSessionIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348.
|
||||
func (m Quote) 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 Quote) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedIssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350.
|
||||
func (m Quote) 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 Quote) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m Quote) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m Quote) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasOrdType returns true if OrdType is present, Tag 40.
|
||||
func (m Quote) HasOrdType() bool {
|
||||
return m.Has(tag.OrdType)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m Quote) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m Quote) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m Quote) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasValidUntilTime returns true if ValidUntilTime is present, Tag 62.
|
||||
func (m Quote) HasValidUntilTime() bool {
|
||||
return m.Has(tag.ValidUntilTime)
|
||||
}
|
||||
|
||||
// HasFutSettDate returns true if FutSettDate is present, Tag 64.
|
||||
func (m Quote) HasFutSettDate() bool {
|
||||
return m.Has(tag.FutSettDate)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m Quote) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m Quote) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m Quote) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasQuoteID returns true if QuoteID is present, Tag 117.
|
||||
func (m Quote) HasQuoteID() bool {
|
||||
return m.Has(tag.QuoteID)
|
||||
}
|
||||
|
||||
// HasQuoteReqID returns true if QuoteReqID is present, Tag 131.
|
||||
func (m Quote) HasQuoteReqID() bool {
|
||||
return m.Has(tag.QuoteReqID)
|
||||
}
|
||||
|
||||
// HasBidPx returns true if BidPx is present, Tag 132.
|
||||
func (m Quote) HasBidPx() bool {
|
||||
return m.Has(tag.BidPx)
|
||||
}
|
||||
|
||||
// HasOfferPx returns true if OfferPx is present, Tag 133.
|
||||
func (m Quote) HasOfferPx() bool {
|
||||
return m.Has(tag.OfferPx)
|
||||
}
|
||||
|
||||
// HasBidSize returns true if BidSize is present, Tag 134.
|
||||
func (m Quote) HasBidSize() bool {
|
||||
return m.Has(tag.BidSize)
|
||||
}
|
||||
|
||||
// HasOfferSize returns true if OfferSize is present, Tag 135.
|
||||
func (m Quote) HasOfferSize() bool {
|
||||
return m.Has(tag.OfferSize)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m Quote) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasBidSpotRate returns true if BidSpotRate is present, Tag 188.
|
||||
func (m Quote) HasBidSpotRate() bool {
|
||||
return m.Has(tag.BidSpotRate)
|
||||
}
|
||||
|
||||
// HasBidForwardPoints returns true if BidForwardPoints is present, Tag 189.
|
||||
func (m Quote) HasBidForwardPoints() bool {
|
||||
return m.Has(tag.BidForwardPoints)
|
||||
}
|
||||
|
||||
// HasOfferSpotRate returns true if OfferSpotRate is present, Tag 190.
|
||||
func (m Quote) HasOfferSpotRate() bool {
|
||||
return m.Has(tag.OfferSpotRate)
|
||||
}
|
||||
|
||||
// HasOfferForwardPoints returns true if OfferForwardPoints is present, Tag 191.
|
||||
func (m Quote) HasOfferForwardPoints() bool {
|
||||
return m.Has(tag.OfferForwardPoints)
|
||||
}
|
||||
|
||||
// HasOrderQty2 returns true if OrderQty2 is present, Tag 192.
|
||||
func (m Quote) HasOrderQty2() bool {
|
||||
return m.Has(tag.OrderQty2)
|
||||
}
|
||||
|
||||
// HasFutSettDate2 returns true if FutSettDate2 is present, Tag 193.
|
||||
func (m Quote) HasFutSettDate2() bool {
|
||||
return m.Has(tag.FutSettDate2)
|
||||
}
|
||||
|
||||
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
||||
func (m Quote) HasMaturityMonthYear() bool {
|
||||
return m.Has(tag.MaturityMonthYear)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m Quote) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m Quote) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m Quote) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
||||
func (m Quote) HasOptAttribute() bool {
|
||||
return m.Has(tag.OptAttribute)
|
||||
}
|
||||
|
||||
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
||||
func (m Quote) HasSecurityExchange() bool {
|
||||
return m.Has(tag.SecurityExchange)
|
||||
}
|
||||
|
||||
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
||||
func (m Quote) HasCouponRate() bool {
|
||||
return m.Has(tag.CouponRate)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m Quote) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// HasQuoteResponseLevel returns true if QuoteResponseLevel is present, Tag 301.
|
||||
func (m Quote) HasQuoteResponseLevel() bool {
|
||||
return m.Has(tag.QuoteResponseLevel)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m Quote) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
|
||||
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
||||
func (m Quote) HasEncodedIssuerLen() bool {
|
||||
return m.Has(tag.EncodedIssuerLen)
|
||||
}
|
||||
|
||||
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
||||
func (m Quote) HasEncodedIssuer() bool {
|
||||
return m.Has(tag.EncodedIssuer)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
||||
func (m Quote) HasEncodedSecurityDescLen() bool {
|
||||
return m.Has(tag.EncodedSecurityDescLen)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
||||
func (m Quote) HasEncodedSecurityDesc() bool {
|
||||
return m.Has(tag.EncodedSecurityDesc)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
604
quickfix/gen/fix42/quotecancel/QuoteCancel.generated.go
Normal file
604
quickfix/gen/fix42/quotecancel/QuoteCancel.generated.go
Normal file
@ -0,0 +1,604 @@
|
||||
// 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)}
|
||||
}
|
||||
749
quickfix/gen/fix42/quoterequest/QuoteRequest.generated.go
Normal file
749
quickfix/gen/fix42/quoterequest/QuoteRequest.generated.go
Normal file
@ -0,0 +1,749 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package quoterequest
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// QuoteRequest is the fix42 QuoteRequest type, MsgType = R.
|
||||
type QuoteRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a QuoteRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) QuoteRequest {
|
||||
return QuoteRequest{
|
||||
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 QuoteRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a QuoteRequest initialized with the required fields for QuoteRequest.
|
||||
func New(quotereqid field.QuoteReqIDField) (m QuoteRequest) {
|
||||
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("R"))
|
||||
m.Set(quotereqid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg QuoteRequest, 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", "R", r
|
||||
}
|
||||
|
||||
// SetQuoteReqID sets QuoteReqID, Tag 131.
|
||||
func (m QuoteRequest) SetQuoteReqID(v string) {
|
||||
m.Set(field.NewQuoteReqID(v))
|
||||
}
|
||||
|
||||
// SetNoRelatedSym sets NoRelatedSym, Tag 146.
|
||||
func (m QuoteRequest) SetNoRelatedSym(f NoRelatedSymRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// GetQuoteReqID gets QuoteReqID, Tag 131.
|
||||
func (m QuoteRequest) GetQuoteReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.QuoteReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNoRelatedSym gets NoRelatedSym, Tag 146.
|
||||
func (m QuoteRequest) GetNoRelatedSym() (NoRelatedSymRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoRelatedSymRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// HasQuoteReqID returns true if QuoteReqID is present, Tag 131.
|
||||
func (m QuoteRequest) HasQuoteReqID() bool {
|
||||
return m.Has(tag.QuoteReqID)
|
||||
}
|
||||
|
||||
// HasNoRelatedSym returns true if NoRelatedSym is present, Tag 146.
|
||||
func (m QuoteRequest) HasNoRelatedSym() bool {
|
||||
return m.Has(tag.NoRelatedSym)
|
||||
}
|
||||
|
||||
// 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))
|
||||
}
|
||||
|
||||
// SetPrevClosePx sets PrevClosePx, Tag 140.
|
||||
func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrevClosePx(value, scale))
|
||||
}
|
||||
|
||||
// SetQuoteRequestType sets QuoteRequestType, Tag 303.
|
||||
func (m NoRelatedSym) SetQuoteRequestType(v enum.QuoteRequestType) {
|
||||
m.Set(field.NewQuoteRequestType(v))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m NoRelatedSym) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m NoRelatedSym) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetOrderQty sets OrderQty, Tag 38.
|
||||
func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetFutSettDate sets FutSettDate, Tag 64.
|
||||
func (m NoRelatedSym) SetFutSettDate(v string) {
|
||||
m.Set(field.NewFutSettDate(v))
|
||||
}
|
||||
|
||||
// SetOrdType sets OrdType, Tag 40.
|
||||
func (m NoRelatedSym) SetOrdType(v enum.OrdType) {
|
||||
m.Set(field.NewOrdType(v))
|
||||
}
|
||||
|
||||
// SetFutSettDate2 sets FutSettDate2, Tag 193.
|
||||
func (m NoRelatedSym) SetFutSettDate2(v string) {
|
||||
m.Set(field.NewFutSettDate2(v))
|
||||
}
|
||||
|
||||
// SetOrderQty2 sets OrderQty2, Tag 192.
|
||||
func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty2(value, scale))
|
||||
}
|
||||
|
||||
// SetExpireTime sets ExpireTime, Tag 126.
|
||||
func (m NoRelatedSym) SetExpireTime(v time.Time) {
|
||||
m.Set(field.NewExpireTime(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m NoRelatedSym) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m NoRelatedSym) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(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
|
||||
}
|
||||
|
||||
// GetPrevClosePx gets PrevClosePx, Tag 140.
|
||||
func (m NoRelatedSym) GetPrevClosePx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PrevClosePxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetQuoteRequestType gets QuoteRequestType, Tag 303.
|
||||
func (m NoRelatedSym) GetQuoteRequestType() (v enum.QuoteRequestType, err quickfix.MessageRejectError) {
|
||||
var f field.QuoteRequestTypeField
|
||||
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
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m NoRelatedSym) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty gets OrderQty, Tag 38.
|
||||
func (m NoRelatedSym) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFutSettDate gets FutSettDate, Tag 64.
|
||||
func (m NoRelatedSym) GetFutSettDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.FutSettDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrdType gets OrdType, Tag 40.
|
||||
func (m NoRelatedSym) GetOrdType() (v enum.OrdType, err quickfix.MessageRejectError) {
|
||||
var f field.OrdTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFutSettDate2 gets FutSettDate2, Tag 193.
|
||||
func (m NoRelatedSym) GetFutSettDate2() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.FutSettDate2Field
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty2 gets OrderQty2, Tag 192.
|
||||
func (m NoRelatedSym) GetOrderQty2() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQty2Field
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExpireTime gets ExpireTime, Tag 126.
|
||||
func (m NoRelatedSym) GetExpireTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.ExpireTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTransactTime gets TransactTime, Tag 60.
|
||||
func (m NoRelatedSym) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m NoRelatedSym) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
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)
|
||||
}
|
||||
|
||||
// HasPrevClosePx returns true if PrevClosePx is present, Tag 140.
|
||||
func (m NoRelatedSym) HasPrevClosePx() bool {
|
||||
return m.Has(tag.PrevClosePx)
|
||||
}
|
||||
|
||||
// HasQuoteRequestType returns true if QuoteRequestType is present, Tag 303.
|
||||
func (m NoRelatedSym) HasQuoteRequestType() bool {
|
||||
return m.Has(tag.QuoteRequestType)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m NoRelatedSym) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m NoRelatedSym) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasOrderQty returns true if OrderQty is present, Tag 38.
|
||||
func (m NoRelatedSym) HasOrderQty() bool {
|
||||
return m.Has(tag.OrderQty)
|
||||
}
|
||||
|
||||
// HasFutSettDate returns true if FutSettDate is present, Tag 64.
|
||||
func (m NoRelatedSym) HasFutSettDate() bool {
|
||||
return m.Has(tag.FutSettDate)
|
||||
}
|
||||
|
||||
// HasOrdType returns true if OrdType is present, Tag 40.
|
||||
func (m NoRelatedSym) HasOrdType() bool {
|
||||
return m.Has(tag.OrdType)
|
||||
}
|
||||
|
||||
// HasFutSettDate2 returns true if FutSettDate2 is present, Tag 193.
|
||||
func (m NoRelatedSym) HasFutSettDate2() bool {
|
||||
return m.Has(tag.FutSettDate2)
|
||||
}
|
||||
|
||||
// HasOrderQty2 returns true if OrderQty2 is present, Tag 192.
|
||||
func (m NoRelatedSym) HasOrderQty2() bool {
|
||||
return m.Has(tag.OrderQty2)
|
||||
}
|
||||
|
||||
// HasExpireTime returns true if ExpireTime is present, Tag 126.
|
||||
func (m NoRelatedSym) HasExpireTime() bool {
|
||||
return m.Has(tag.ExpireTime)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m NoRelatedSym) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m NoRelatedSym) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// 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.PrevClosePx),
|
||||
quickfix.GroupElement(tag.QuoteRequestType),
|
||||
quickfix.GroupElement(tag.TradingSessionID),
|
||||
quickfix.GroupElement(tag.Side),
|
||||
quickfix.GroupElement(tag.OrderQty),
|
||||
quickfix.GroupElement(tag.FutSettDate),
|
||||
quickfix.GroupElement(tag.OrdType),
|
||||
quickfix.GroupElement(tag.FutSettDate2),
|
||||
quickfix.GroupElement(tag.OrderQty2),
|
||||
quickfix.GroupElement(tag.ExpireTime),
|
||||
quickfix.GroupElement(tag.TransactTime),
|
||||
quickfix.GroupElement(tag.Currency),
|
||||
},
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// 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)}
|
||||
}
|
||||
@ -0,0 +1,477 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package quotestatusrequest
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// QuoteStatusRequest is the fix42 QuoteStatusRequest type, MsgType = a.
|
||||
type QuoteStatusRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a QuoteStatusRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) QuoteStatusRequest {
|
||||
return QuoteStatusRequest{
|
||||
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 QuoteStatusRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a QuoteStatusRequest initialized with the required fields for QuoteStatusRequest.
|
||||
func New(symbol field.SymbolField) (m QuoteStatusRequest) {
|
||||
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("a"))
|
||||
m.Set(symbol)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg QuoteStatusRequest, 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", "a", r
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m QuoteStatusRequest) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m QuoteStatusRequest) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m QuoteStatusRequest) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m QuoteStatusRequest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m QuoteStatusRequest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m QuoteStatusRequest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m QuoteStatusRequest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetQuoteID sets QuoteID, Tag 117.
|
||||
func (m QuoteStatusRequest) SetQuoteID(v string) {
|
||||
m.Set(field.NewQuoteID(v))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m QuoteStatusRequest) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m QuoteStatusRequest) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m QuoteStatusRequest) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m QuoteStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m QuoteStatusRequest) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(v))
|
||||
}
|
||||
|
||||
// SetOptAttribute sets OptAttribute, Tag 206.
|
||||
func (m QuoteStatusRequest) SetOptAttribute(v string) {
|
||||
m.Set(field.NewOptAttribute(v))
|
||||
}
|
||||
|
||||
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
||||
func (m QuoteStatusRequest) SetSecurityExchange(v string) {
|
||||
m.Set(field.NewSecurityExchange(v))
|
||||
}
|
||||
|
||||
// SetCouponRate sets CouponRate, Tag 223.
|
||||
func (m QuoteStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m QuoteStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m QuoteStatusRequest) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
||||
func (m QuoteStatusRequest) SetEncodedIssuerLen(v int) {
|
||||
m.Set(field.NewEncodedIssuerLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
||||
func (m QuoteStatusRequest) SetEncodedIssuer(v string) {
|
||||
m.Set(field.NewEncodedIssuer(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
||||
func (m QuoteStatusRequest) SetEncodedSecurityDescLen(v int) {
|
||||
m.Set(field.NewEncodedSecurityDescLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
||||
func (m QuoteStatusRequest) SetEncodedSecurityDesc(v string) {
|
||||
m.Set(field.NewEncodedSecurityDesc(v))
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m QuoteStatusRequest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m QuoteStatusRequest) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m QuoteStatusRequest) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m QuoteStatusRequest) 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 QuoteStatusRequest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m QuoteStatusRequest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m QuoteStatusRequest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetQuoteID gets QuoteID, Tag 117.
|
||||
func (m QuoteStatusRequest) GetQuoteID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.QuoteIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m QuoteStatusRequest) 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 QuoteStatusRequest) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityMonthYearField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPutOrCall gets PutOrCall, Tag 201.
|
||||
func (m QuoteStatusRequest) 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 QuoteStatusRequest) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StrikePriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityDay gets MaturityDay, Tag 205.
|
||||
func (m QuoteStatusRequest) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityDayField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOptAttribute gets OptAttribute, Tag 206.
|
||||
func (m QuoteStatusRequest) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OptAttributeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityExchange gets SecurityExchange, Tag 207.
|
||||
func (m QuoteStatusRequest) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityExchangeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCouponRate gets CouponRate, Tag 223.
|
||||
func (m QuoteStatusRequest) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CouponRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetContractMultiplier gets ContractMultiplier, Tag 231.
|
||||
func (m QuoteStatusRequest) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.ContractMultiplierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradingSessionID gets TradingSessionID, Tag 336.
|
||||
func (m QuoteStatusRequest) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
||||
var f field.TradingSessionIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348.
|
||||
func (m QuoteStatusRequest) 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 QuoteStatusRequest) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedIssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350.
|
||||
func (m QuoteStatusRequest) 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 QuoteStatusRequest) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m QuoteStatusRequest) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m QuoteStatusRequest) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m QuoteStatusRequest) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m QuoteStatusRequest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m QuoteStatusRequest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m QuoteStatusRequest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m QuoteStatusRequest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasQuoteID returns true if QuoteID is present, Tag 117.
|
||||
func (m QuoteStatusRequest) HasQuoteID() bool {
|
||||
return m.Has(tag.QuoteID)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m QuoteStatusRequest) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
||||
func (m QuoteStatusRequest) HasMaturityMonthYear() bool {
|
||||
return m.Has(tag.MaturityMonthYear)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m QuoteStatusRequest) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m QuoteStatusRequest) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m QuoteStatusRequest) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
||||
func (m QuoteStatusRequest) HasOptAttribute() bool {
|
||||
return m.Has(tag.OptAttribute)
|
||||
}
|
||||
|
||||
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
||||
func (m QuoteStatusRequest) HasSecurityExchange() bool {
|
||||
return m.Has(tag.SecurityExchange)
|
||||
}
|
||||
|
||||
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
||||
func (m QuoteStatusRequest) HasCouponRate() bool {
|
||||
return m.Has(tag.CouponRate)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m QuoteStatusRequest) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m QuoteStatusRequest) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
|
||||
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
||||
func (m QuoteStatusRequest) HasEncodedIssuerLen() bool {
|
||||
return m.Has(tag.EncodedIssuerLen)
|
||||
}
|
||||
|
||||
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
||||
func (m QuoteStatusRequest) HasEncodedIssuer() bool {
|
||||
return m.Has(tag.EncodedIssuer)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
||||
func (m QuoteStatusRequest) HasEncodedSecurityDescLen() bool {
|
||||
return m.Has(tag.EncodedSecurityDescLen)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
||||
func (m QuoteStatusRequest) HasEncodedSecurityDesc() bool {
|
||||
return m.Has(tag.EncodedSecurityDesc)
|
||||
}
|
||||
190
quickfix/gen/fix42/reject/Reject.generated.go
Normal file
190
quickfix/gen/fix42/reject/Reject.generated.go
Normal file
@ -0,0 +1,190 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package reject
|
||||
|
||||
import (
|
||||
"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"
|
||||
)
|
||||
|
||||
// Reject is the fix42 Reject type, MsgType = 3.
|
||||
type Reject struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Reject from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Reject {
|
||||
return Reject{
|
||||
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 Reject) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Reject initialized with the required fields for Reject.
|
||||
func New(refseqnum field.RefSeqNumField) (m Reject) {
|
||||
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("3"))
|
||||
m.Set(refseqnum)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Reject, 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", "3", r
|
||||
}
|
||||
|
||||
// SetRefSeqNum sets RefSeqNum, Tag 45.
|
||||
func (m Reject) SetRefSeqNum(v int) {
|
||||
m.Set(field.NewRefSeqNum(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m Reject) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m Reject) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m Reject) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// SetRefTagID sets RefTagID, Tag 371.
|
||||
func (m Reject) SetRefTagID(v int) {
|
||||
m.Set(field.NewRefTagID(v))
|
||||
}
|
||||
|
||||
// SetRefMsgType sets RefMsgType, Tag 372.
|
||||
func (m Reject) SetRefMsgType(v string) {
|
||||
m.Set(field.NewRefMsgType(v))
|
||||
}
|
||||
|
||||
// SetSessionRejectReason sets SessionRejectReason, Tag 373.
|
||||
func (m Reject) SetSessionRejectReason(v enum.SessionRejectReason) {
|
||||
m.Set(field.NewSessionRejectReason(v))
|
||||
}
|
||||
|
||||
// GetRefSeqNum gets RefSeqNum, Tag 45.
|
||||
func (m Reject) GetRefSeqNum() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.RefSeqNumField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m Reject) 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 Reject) 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 Reject) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRefTagID gets RefTagID, Tag 371.
|
||||
func (m Reject) GetRefTagID() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.RefTagIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRefMsgType gets RefMsgType, Tag 372.
|
||||
func (m Reject) GetRefMsgType() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.RefMsgTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSessionRejectReason gets SessionRejectReason, Tag 373.
|
||||
func (m Reject) GetSessionRejectReason() (v enum.SessionRejectReason, err quickfix.MessageRejectError) {
|
||||
var f field.SessionRejectReasonField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasRefSeqNum returns true if RefSeqNum is present, Tag 45.
|
||||
func (m Reject) HasRefSeqNum() bool {
|
||||
return m.Has(tag.RefSeqNum)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m Reject) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m Reject) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m Reject) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// HasRefTagID returns true if RefTagID is present, Tag 371.
|
||||
func (m Reject) HasRefTagID() bool {
|
||||
return m.Has(tag.RefTagID)
|
||||
}
|
||||
|
||||
// HasRefMsgType returns true if RefMsgType is present, Tag 372.
|
||||
func (m Reject) HasRefMsgType() bool {
|
||||
return m.Has(tag.RefMsgType)
|
||||
}
|
||||
|
||||
// HasSessionRejectReason returns true if SessionRejectReason is present, Tag 373.
|
||||
func (m Reject) HasSessionRejectReason() bool {
|
||||
return m.Has(tag.SessionRejectReason)
|
||||
}
|
||||
95
quickfix/gen/fix42/resendrequest/ResendRequest.generated.go
Normal file
95
quickfix/gen/fix42/resendrequest/ResendRequest.generated.go
Normal file
@ -0,0 +1,95 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package resendrequest
|
||||
|
||||
import (
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/fix42"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ResendRequest is the fix42 ResendRequest type, MsgType = 2.
|
||||
type ResendRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ResendRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ResendRequest {
|
||||
return ResendRequest{
|
||||
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 ResendRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ResendRequest initialized with the required fields for ResendRequest.
|
||||
func New(beginseqno field.BeginSeqNoField, endseqno field.EndSeqNoField) (m ResendRequest) {
|
||||
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("2"))
|
||||
m.Set(beginseqno)
|
||||
m.Set(endseqno)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ResendRequest, 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", "2", r
|
||||
}
|
||||
|
||||
// SetBeginSeqNo sets BeginSeqNo, Tag 7.
|
||||
func (m ResendRequest) SetBeginSeqNo(v int) {
|
||||
m.Set(field.NewBeginSeqNo(v))
|
||||
}
|
||||
|
||||
// SetEndSeqNo sets EndSeqNo, Tag 16.
|
||||
func (m ResendRequest) SetEndSeqNo(v int) {
|
||||
m.Set(field.NewEndSeqNo(v))
|
||||
}
|
||||
|
||||
// GetBeginSeqNo gets BeginSeqNo, Tag 7.
|
||||
func (m ResendRequest) GetBeginSeqNo() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.BeginSeqNoField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEndSeqNo gets EndSeqNo, Tag 16.
|
||||
func (m ResendRequest) GetEndSeqNo() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.EndSeqNoField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasBeginSeqNo returns true if BeginSeqNo is present, Tag 7.
|
||||
func (m ResendRequest) HasBeginSeqNo() bool {
|
||||
return m.Has(tag.BeginSeqNo)
|
||||
}
|
||||
|
||||
// HasEndSeqNo returns true if EndSeqNo is present, Tag 16.
|
||||
func (m ResendRequest) HasEndSeqNo() bool {
|
||||
return m.Has(tag.EndSeqNo)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
745
quickfix/gen/fix42/securitystatus/SecurityStatus.generated.go
Normal file
745
quickfix/gen/fix42/securitystatus/SecurityStatus.generated.go
Normal file
@ -0,0 +1,745 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package securitystatus
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// SecurityStatus is the fix42 SecurityStatus type, MsgType = f.
|
||||
type SecurityStatus struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a SecurityStatus from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) SecurityStatus {
|
||||
return SecurityStatus{
|
||||
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 SecurityStatus) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a SecurityStatus initialized with the required fields for SecurityStatus.
|
||||
func New(symbol field.SymbolField) (m SecurityStatus) {
|
||||
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("f"))
|
||||
m.Set(symbol)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg SecurityStatus, 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", "f", r
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m SecurityStatus) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m SecurityStatus) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetLastPx sets LastPx, Tag 31.
|
||||
func (m SecurityStatus) SetLastPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewLastPx(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m SecurityStatus) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m SecurityStatus) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m SecurityStatus) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m SecurityStatus) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m SecurityStatus) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m SecurityStatus) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m SecurityStatus) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m SecurityStatus) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m SecurityStatus) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m SecurityStatus) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m SecurityStatus) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(v))
|
||||
}
|
||||
|
||||
// SetOptAttribute sets OptAttribute, Tag 206.
|
||||
func (m SecurityStatus) SetOptAttribute(v string) {
|
||||
m.Set(field.NewOptAttribute(v))
|
||||
}
|
||||
|
||||
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
||||
func (m SecurityStatus) SetSecurityExchange(v string) {
|
||||
m.Set(field.NewSecurityExchange(v))
|
||||
}
|
||||
|
||||
// SetCouponRate sets CouponRate, Tag 223.
|
||||
func (m SecurityStatus) SetCouponRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m SecurityStatus) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// SetFinancialStatus sets FinancialStatus, Tag 291.
|
||||
func (m SecurityStatus) SetFinancialStatus(v enum.FinancialStatus) {
|
||||
m.Set(field.NewFinancialStatus(v))
|
||||
}
|
||||
|
||||
// SetCorporateAction sets CorporateAction, Tag 292.
|
||||
func (m SecurityStatus) SetCorporateAction(v enum.CorporateAction) {
|
||||
m.Set(field.NewCorporateAction(v))
|
||||
}
|
||||
|
||||
// SetSecurityStatusReqID sets SecurityStatusReqID, Tag 324.
|
||||
func (m SecurityStatus) SetSecurityStatusReqID(v string) {
|
||||
m.Set(field.NewSecurityStatusReqID(v))
|
||||
}
|
||||
|
||||
// SetUnsolicitedIndicator sets UnsolicitedIndicator, Tag 325.
|
||||
func (m SecurityStatus) SetUnsolicitedIndicator(v bool) {
|
||||
m.Set(field.NewUnsolicitedIndicator(v))
|
||||
}
|
||||
|
||||
// SetSecurityTradingStatus sets SecurityTradingStatus, Tag 326.
|
||||
func (m SecurityStatus) SetSecurityTradingStatus(v enum.SecurityTradingStatus) {
|
||||
m.Set(field.NewSecurityTradingStatus(v))
|
||||
}
|
||||
|
||||
// SetHaltReasonChar sets HaltReasonChar, Tag 327.
|
||||
func (m SecurityStatus) SetHaltReasonChar(v enum.HaltReasonChar) {
|
||||
m.Set(field.NewHaltReasonChar(v))
|
||||
}
|
||||
|
||||
// SetInViewOfCommon sets InViewOfCommon, Tag 328.
|
||||
func (m SecurityStatus) SetInViewOfCommon(v bool) {
|
||||
m.Set(field.NewInViewOfCommon(v))
|
||||
}
|
||||
|
||||
// SetDueToRelated sets DueToRelated, Tag 329.
|
||||
func (m SecurityStatus) SetDueToRelated(v bool) {
|
||||
m.Set(field.NewDueToRelated(v))
|
||||
}
|
||||
|
||||
// SetBuyVolume sets BuyVolume, Tag 330.
|
||||
func (m SecurityStatus) SetBuyVolume(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewBuyVolume(value, scale))
|
||||
}
|
||||
|
||||
// SetSellVolume sets SellVolume, Tag 331.
|
||||
func (m SecurityStatus) SetSellVolume(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewSellVolume(value, scale))
|
||||
}
|
||||
|
||||
// SetHighPx sets HighPx, Tag 332.
|
||||
func (m SecurityStatus) SetHighPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewHighPx(value, scale))
|
||||
}
|
||||
|
||||
// SetLowPx sets LowPx, Tag 333.
|
||||
func (m SecurityStatus) SetLowPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewLowPx(value, scale))
|
||||
}
|
||||
|
||||
// SetAdjustment sets Adjustment, Tag 334.
|
||||
func (m SecurityStatus) SetAdjustment(v enum.Adjustment) {
|
||||
m.Set(field.NewAdjustment(v))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m SecurityStatus) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
||||
func (m SecurityStatus) SetEncodedIssuerLen(v int) {
|
||||
m.Set(field.NewEncodedIssuerLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
||||
func (m SecurityStatus) SetEncodedIssuer(v string) {
|
||||
m.Set(field.NewEncodedIssuer(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
||||
func (m SecurityStatus) SetEncodedSecurityDescLen(v int) {
|
||||
m.Set(field.NewEncodedSecurityDescLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
||||
func (m SecurityStatus) SetEncodedSecurityDesc(v string) {
|
||||
m.Set(field.NewEncodedSecurityDesc(v))
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m SecurityStatus) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m SecurityStatus) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLastPx gets LastPx, Tag 31.
|
||||
func (m SecurityStatus) GetLastPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.LastPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m SecurityStatus) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m SecurityStatus) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTransactTime gets TransactTime, Tag 60.
|
||||
func (m SecurityStatus) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m SecurityStatus) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m SecurityStatus) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m SecurityStatus) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m SecurityStatus) 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 SecurityStatus) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityMonthYearField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPutOrCall gets PutOrCall, Tag 201.
|
||||
func (m SecurityStatus) 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 SecurityStatus) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StrikePriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityDay gets MaturityDay, Tag 205.
|
||||
func (m SecurityStatus) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityDayField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOptAttribute gets OptAttribute, Tag 206.
|
||||
func (m SecurityStatus) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OptAttributeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityExchange gets SecurityExchange, Tag 207.
|
||||
func (m SecurityStatus) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityExchangeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCouponRate gets CouponRate, Tag 223.
|
||||
func (m SecurityStatus) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CouponRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetContractMultiplier gets ContractMultiplier, Tag 231.
|
||||
func (m SecurityStatus) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.ContractMultiplierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFinancialStatus gets FinancialStatus, Tag 291.
|
||||
func (m SecurityStatus) GetFinancialStatus() (v enum.FinancialStatus, err quickfix.MessageRejectError) {
|
||||
var f field.FinancialStatusField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCorporateAction gets CorporateAction, Tag 292.
|
||||
func (m SecurityStatus) GetCorporateAction() (v enum.CorporateAction, err quickfix.MessageRejectError) {
|
||||
var f field.CorporateActionField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityStatusReqID gets SecurityStatusReqID, Tag 324.
|
||||
func (m SecurityStatus) GetSecurityStatusReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityStatusReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetUnsolicitedIndicator gets UnsolicitedIndicator, Tag 325.
|
||||
func (m SecurityStatus) GetUnsolicitedIndicator() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.UnsolicitedIndicatorField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityTradingStatus gets SecurityTradingStatus, Tag 326.
|
||||
func (m SecurityStatus) GetSecurityTradingStatus() (v enum.SecurityTradingStatus, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityTradingStatusField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetHaltReasonChar gets HaltReasonChar, Tag 327.
|
||||
func (m SecurityStatus) GetHaltReasonChar() (v enum.HaltReasonChar, err quickfix.MessageRejectError) {
|
||||
var f field.HaltReasonCharField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetInViewOfCommon gets InViewOfCommon, Tag 328.
|
||||
func (m SecurityStatus) GetInViewOfCommon() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.InViewOfCommonField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetDueToRelated gets DueToRelated, Tag 329.
|
||||
func (m SecurityStatus) GetDueToRelated() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.DueToRelatedField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBuyVolume gets BuyVolume, Tag 330.
|
||||
func (m SecurityStatus) GetBuyVolume() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.BuyVolumeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSellVolume gets SellVolume, Tag 331.
|
||||
func (m SecurityStatus) GetSellVolume() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.SellVolumeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetHighPx gets HighPx, Tag 332.
|
||||
func (m SecurityStatus) GetHighPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.HighPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLowPx gets LowPx, Tag 333.
|
||||
func (m SecurityStatus) GetLowPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.LowPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAdjustment gets Adjustment, Tag 334.
|
||||
func (m SecurityStatus) GetAdjustment() (v enum.Adjustment, err quickfix.MessageRejectError) {
|
||||
var f field.AdjustmentField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradingSessionID gets TradingSessionID, Tag 336.
|
||||
func (m SecurityStatus) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
||||
var f field.TradingSessionIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348.
|
||||
func (m SecurityStatus) 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 SecurityStatus) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedIssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350.
|
||||
func (m SecurityStatus) 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 SecurityStatus) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m SecurityStatus) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m SecurityStatus) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasLastPx returns true if LastPx is present, Tag 31.
|
||||
func (m SecurityStatus) HasLastPx() bool {
|
||||
return m.Has(tag.LastPx)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m SecurityStatus) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m SecurityStatus) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m SecurityStatus) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m SecurityStatus) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m SecurityStatus) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m SecurityStatus) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m SecurityStatus) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
||||
func (m SecurityStatus) HasMaturityMonthYear() bool {
|
||||
return m.Has(tag.MaturityMonthYear)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m SecurityStatus) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m SecurityStatus) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m SecurityStatus) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
||||
func (m SecurityStatus) HasOptAttribute() bool {
|
||||
return m.Has(tag.OptAttribute)
|
||||
}
|
||||
|
||||
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
||||
func (m SecurityStatus) HasSecurityExchange() bool {
|
||||
return m.Has(tag.SecurityExchange)
|
||||
}
|
||||
|
||||
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
||||
func (m SecurityStatus) HasCouponRate() bool {
|
||||
return m.Has(tag.CouponRate)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m SecurityStatus) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// HasFinancialStatus returns true if FinancialStatus is present, Tag 291.
|
||||
func (m SecurityStatus) HasFinancialStatus() bool {
|
||||
return m.Has(tag.FinancialStatus)
|
||||
}
|
||||
|
||||
// HasCorporateAction returns true if CorporateAction is present, Tag 292.
|
||||
func (m SecurityStatus) HasCorporateAction() bool {
|
||||
return m.Has(tag.CorporateAction)
|
||||
}
|
||||
|
||||
// HasSecurityStatusReqID returns true if SecurityStatusReqID is present, Tag 324.
|
||||
func (m SecurityStatus) HasSecurityStatusReqID() bool {
|
||||
return m.Has(tag.SecurityStatusReqID)
|
||||
}
|
||||
|
||||
// HasUnsolicitedIndicator returns true if UnsolicitedIndicator is present, Tag 325.
|
||||
func (m SecurityStatus) HasUnsolicitedIndicator() bool {
|
||||
return m.Has(tag.UnsolicitedIndicator)
|
||||
}
|
||||
|
||||
// HasSecurityTradingStatus returns true if SecurityTradingStatus is present, Tag 326.
|
||||
func (m SecurityStatus) HasSecurityTradingStatus() bool {
|
||||
return m.Has(tag.SecurityTradingStatus)
|
||||
}
|
||||
|
||||
// HasHaltReasonChar returns true if HaltReasonChar is present, Tag 327.
|
||||
func (m SecurityStatus) HasHaltReasonChar() bool {
|
||||
return m.Has(tag.HaltReasonChar)
|
||||
}
|
||||
|
||||
// HasInViewOfCommon returns true if InViewOfCommon is present, Tag 328.
|
||||
func (m SecurityStatus) HasInViewOfCommon() bool {
|
||||
return m.Has(tag.InViewOfCommon)
|
||||
}
|
||||
|
||||
// HasDueToRelated returns true if DueToRelated is present, Tag 329.
|
||||
func (m SecurityStatus) HasDueToRelated() bool {
|
||||
return m.Has(tag.DueToRelated)
|
||||
}
|
||||
|
||||
// HasBuyVolume returns true if BuyVolume is present, Tag 330.
|
||||
func (m SecurityStatus) HasBuyVolume() bool {
|
||||
return m.Has(tag.BuyVolume)
|
||||
}
|
||||
|
||||
// HasSellVolume returns true if SellVolume is present, Tag 331.
|
||||
func (m SecurityStatus) HasSellVolume() bool {
|
||||
return m.Has(tag.SellVolume)
|
||||
}
|
||||
|
||||
// HasHighPx returns true if HighPx is present, Tag 332.
|
||||
func (m SecurityStatus) HasHighPx() bool {
|
||||
return m.Has(tag.HighPx)
|
||||
}
|
||||
|
||||
// HasLowPx returns true if LowPx is present, Tag 333.
|
||||
func (m SecurityStatus) HasLowPx() bool {
|
||||
return m.Has(tag.LowPx)
|
||||
}
|
||||
|
||||
// HasAdjustment returns true if Adjustment is present, Tag 334.
|
||||
func (m SecurityStatus) HasAdjustment() bool {
|
||||
return m.Has(tag.Adjustment)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m SecurityStatus) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
|
||||
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
||||
func (m SecurityStatus) HasEncodedIssuerLen() bool {
|
||||
return m.Has(tag.EncodedIssuerLen)
|
||||
}
|
||||
|
||||
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
||||
func (m SecurityStatus) HasEncodedIssuer() bool {
|
||||
return m.Has(tag.EncodedIssuer)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
||||
func (m SecurityStatus) HasEncodedSecurityDescLen() bool {
|
||||
return m.Has(tag.EncodedSecurityDescLen)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
||||
func (m SecurityStatus) HasEncodedSecurityDesc() bool {
|
||||
return m.Has(tag.EncodedSecurityDesc)
|
||||
}
|
||||
@ -0,0 +1,498 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package securitystatusrequest
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// SecurityStatusRequest is the fix42 SecurityStatusRequest type, MsgType = e.
|
||||
type SecurityStatusRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a SecurityStatusRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) SecurityStatusRequest {
|
||||
return SecurityStatusRequest{
|
||||
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 SecurityStatusRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a SecurityStatusRequest initialized with the required fields for SecurityStatusRequest.
|
||||
func New(securitystatusreqid field.SecurityStatusReqIDField, symbol field.SymbolField, subscriptionrequesttype field.SubscriptionRequestTypeField) (m SecurityStatusRequest) {
|
||||
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("e"))
|
||||
m.Set(securitystatusreqid)
|
||||
m.Set(symbol)
|
||||
m.Set(subscriptionrequesttype)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg SecurityStatusRequest, 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", "e", r
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m SecurityStatusRequest) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m SecurityStatusRequest) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m SecurityStatusRequest) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m SecurityStatusRequest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m SecurityStatusRequest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m SecurityStatusRequest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m SecurityStatusRequest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m SecurityStatusRequest) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
||||
func (m SecurityStatusRequest) SetMaturityMonthYear(v string) {
|
||||
m.Set(field.NewMaturityMonthYear(v))
|
||||
}
|
||||
|
||||
// SetPutOrCall sets PutOrCall, Tag 201.
|
||||
func (m SecurityStatusRequest) SetPutOrCall(v enum.PutOrCall) {
|
||||
m.Set(field.NewPutOrCall(v))
|
||||
}
|
||||
|
||||
// SetStrikePrice sets StrikePrice, Tag 202.
|
||||
func (m SecurityStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStrikePrice(value, scale))
|
||||
}
|
||||
|
||||
// SetMaturityDay sets MaturityDay, Tag 205.
|
||||
func (m SecurityStatusRequest) SetMaturityDay(v int) {
|
||||
m.Set(field.NewMaturityDay(v))
|
||||
}
|
||||
|
||||
// SetOptAttribute sets OptAttribute, Tag 206.
|
||||
func (m SecurityStatusRequest) SetOptAttribute(v string) {
|
||||
m.Set(field.NewOptAttribute(v))
|
||||
}
|
||||
|
||||
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
||||
func (m SecurityStatusRequest) SetSecurityExchange(v string) {
|
||||
m.Set(field.NewSecurityExchange(v))
|
||||
}
|
||||
|
||||
// SetCouponRate sets CouponRate, Tag 223.
|
||||
func (m SecurityStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCouponRate(value, scale))
|
||||
}
|
||||
|
||||
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
||||
func (m SecurityStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewContractMultiplier(value, scale))
|
||||
}
|
||||
|
||||
// SetSubscriptionRequestType sets SubscriptionRequestType, Tag 263.
|
||||
func (m SecurityStatusRequest) SetSubscriptionRequestType(v enum.SubscriptionRequestType) {
|
||||
m.Set(field.NewSubscriptionRequestType(v))
|
||||
}
|
||||
|
||||
// SetSecurityStatusReqID sets SecurityStatusReqID, Tag 324.
|
||||
func (m SecurityStatusRequest) SetSecurityStatusReqID(v string) {
|
||||
m.Set(field.NewSecurityStatusReqID(v))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m SecurityStatusRequest) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
||||
func (m SecurityStatusRequest) SetEncodedIssuerLen(v int) {
|
||||
m.Set(field.NewEncodedIssuerLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
||||
func (m SecurityStatusRequest) SetEncodedIssuer(v string) {
|
||||
m.Set(field.NewEncodedIssuer(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
||||
func (m SecurityStatusRequest) SetEncodedSecurityDescLen(v int) {
|
||||
m.Set(field.NewEncodedSecurityDescLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
||||
func (m SecurityStatusRequest) SetEncodedSecurityDesc(v string) {
|
||||
m.Set(field.NewEncodedSecurityDesc(v))
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m SecurityStatusRequest) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m SecurityStatusRequest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m SecurityStatusRequest) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m SecurityStatusRequest) 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 SecurityStatusRequest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m SecurityStatusRequest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m SecurityStatusRequest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m SecurityStatusRequest) 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 SecurityStatusRequest) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityMonthYearField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPutOrCall gets PutOrCall, Tag 201.
|
||||
func (m SecurityStatusRequest) 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 SecurityStatusRequest) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StrikePriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaturityDay gets MaturityDay, Tag 205.
|
||||
func (m SecurityStatusRequest) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.MaturityDayField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOptAttribute gets OptAttribute, Tag 206.
|
||||
func (m SecurityStatusRequest) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OptAttributeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityExchange gets SecurityExchange, Tag 207.
|
||||
func (m SecurityStatusRequest) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityExchangeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCouponRate gets CouponRate, Tag 223.
|
||||
func (m SecurityStatusRequest) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CouponRateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetContractMultiplier gets ContractMultiplier, Tag 231.
|
||||
func (m SecurityStatusRequest) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.ContractMultiplierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSubscriptionRequestType gets SubscriptionRequestType, Tag 263.
|
||||
func (m SecurityStatusRequest) GetSubscriptionRequestType() (v enum.SubscriptionRequestType, err quickfix.MessageRejectError) {
|
||||
var f field.SubscriptionRequestTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityStatusReqID gets SecurityStatusReqID, Tag 324.
|
||||
func (m SecurityStatusRequest) GetSecurityStatusReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityStatusReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradingSessionID gets TradingSessionID, Tag 336.
|
||||
func (m SecurityStatusRequest) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
||||
var f field.TradingSessionIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348.
|
||||
func (m SecurityStatusRequest) 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 SecurityStatusRequest) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedIssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350.
|
||||
func (m SecurityStatusRequest) 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 SecurityStatusRequest) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedSecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m SecurityStatusRequest) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m SecurityStatusRequest) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m SecurityStatusRequest) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m SecurityStatusRequest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m SecurityStatusRequest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m SecurityStatusRequest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m SecurityStatusRequest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m SecurityStatusRequest) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
||||
func (m SecurityStatusRequest) HasMaturityMonthYear() bool {
|
||||
return m.Has(tag.MaturityMonthYear)
|
||||
}
|
||||
|
||||
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
||||
func (m SecurityStatusRequest) HasPutOrCall() bool {
|
||||
return m.Has(tag.PutOrCall)
|
||||
}
|
||||
|
||||
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
||||
func (m SecurityStatusRequest) HasStrikePrice() bool {
|
||||
return m.Has(tag.StrikePrice)
|
||||
}
|
||||
|
||||
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
||||
func (m SecurityStatusRequest) HasMaturityDay() bool {
|
||||
return m.Has(tag.MaturityDay)
|
||||
}
|
||||
|
||||
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
||||
func (m SecurityStatusRequest) HasOptAttribute() bool {
|
||||
return m.Has(tag.OptAttribute)
|
||||
}
|
||||
|
||||
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
||||
func (m SecurityStatusRequest) HasSecurityExchange() bool {
|
||||
return m.Has(tag.SecurityExchange)
|
||||
}
|
||||
|
||||
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
||||
func (m SecurityStatusRequest) HasCouponRate() bool {
|
||||
return m.Has(tag.CouponRate)
|
||||
}
|
||||
|
||||
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
||||
func (m SecurityStatusRequest) HasContractMultiplier() bool {
|
||||
return m.Has(tag.ContractMultiplier)
|
||||
}
|
||||
|
||||
// HasSubscriptionRequestType returns true if SubscriptionRequestType is present, Tag 263.
|
||||
func (m SecurityStatusRequest) HasSubscriptionRequestType() bool {
|
||||
return m.Has(tag.SubscriptionRequestType)
|
||||
}
|
||||
|
||||
// HasSecurityStatusReqID returns true if SecurityStatusReqID is present, Tag 324.
|
||||
func (m SecurityStatusRequest) HasSecurityStatusReqID() bool {
|
||||
return m.Has(tag.SecurityStatusReqID)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m SecurityStatusRequest) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
|
||||
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
||||
func (m SecurityStatusRequest) HasEncodedIssuerLen() bool {
|
||||
return m.Has(tag.EncodedIssuerLen)
|
||||
}
|
||||
|
||||
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
||||
func (m SecurityStatusRequest) HasEncodedIssuer() bool {
|
||||
return m.Has(tag.EncodedIssuer)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
||||
func (m SecurityStatusRequest) HasEncodedSecurityDescLen() bool {
|
||||
return m.Has(tag.EncodedSecurityDescLen)
|
||||
}
|
||||
|
||||
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
||||
func (m SecurityStatusRequest) HasEncodedSecurityDesc() bool {
|
||||
return m.Has(tag.EncodedSecurityDesc)
|
||||
}
|
||||
94
quickfix/gen/fix42/sequencereset/SequenceReset.generated.go
Normal file
94
quickfix/gen/fix42/sequencereset/SequenceReset.generated.go
Normal file
@ -0,0 +1,94 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package sequencereset
|
||||
|
||||
import (
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/fix42"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// SequenceReset is the fix42 SequenceReset type, MsgType = 4.
|
||||
type SequenceReset struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a SequenceReset from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) SequenceReset {
|
||||
return SequenceReset{
|
||||
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 SequenceReset) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a SequenceReset initialized with the required fields for SequenceReset.
|
||||
func New(newseqno field.NewSeqNoField) (m SequenceReset) {
|
||||
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("4"))
|
||||
m.Set(newseqno)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg SequenceReset, 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", "4", r
|
||||
}
|
||||
|
||||
// SetNewSeqNo sets NewSeqNo, Tag 36.
|
||||
func (m SequenceReset) SetNewSeqNo(v int) {
|
||||
m.Set(field.NewNewSeqNo(v))
|
||||
}
|
||||
|
||||
// SetGapFillFlag sets GapFillFlag, Tag 123.
|
||||
func (m SequenceReset) SetGapFillFlag(v bool) {
|
||||
m.Set(field.NewGapFillFlag(v))
|
||||
}
|
||||
|
||||
// GetNewSeqNo gets NewSeqNo, Tag 36.
|
||||
func (m SequenceReset) GetNewSeqNo() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.NewSeqNoField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetGapFillFlag gets GapFillFlag, Tag 123.
|
||||
func (m SequenceReset) GetGapFillFlag() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.GapFillFlagField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasNewSeqNo returns true if NewSeqNo is present, Tag 36.
|
||||
func (m SequenceReset) HasNewSeqNo() bool {
|
||||
return m.Has(tag.NewSeqNo)
|
||||
}
|
||||
|
||||
// HasGapFillFlag returns true if GapFillFlag is present, Tag 123.
|
||||
func (m SequenceReset) HasGapFillFlag() bool {
|
||||
return m.Has(tag.GapFillFlag)
|
||||
}
|
||||
@ -0,0 +1,749 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package settlementinstructions
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"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"
|
||||
)
|
||||
|
||||
// SettlementInstructions is the fix42 SettlementInstructions type, MsgType = T.
|
||||
type SettlementInstructions struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a SettlementInstructions from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) SettlementInstructions {
|
||||
return SettlementInstructions{
|
||||
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 SettlementInstructions) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a SettlementInstructions initialized with the required fields for SettlementInstructions.
|
||||
func New(settlinstid field.SettlInstIDField, settlinsttranstype field.SettlInstTransTypeField, settlinstrefid field.SettlInstRefIDField, settlinstmode field.SettlInstModeField, settlinstsource field.SettlInstSourceField, allocaccount field.AllocAccountField, transacttime field.TransactTimeField) (m SettlementInstructions) {
|
||||
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("T"))
|
||||
m.Set(settlinstid)
|
||||
m.Set(settlinsttranstype)
|
||||
m.Set(settlinstrefid)
|
||||
m.Set(settlinstmode)
|
||||
m.Set(settlinstsource)
|
||||
m.Set(allocaccount)
|
||||
m.Set(transacttime)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg SettlementInstructions, 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", "T", r
|
||||
}
|
||||
|
||||
// SetLastMkt sets LastMkt, Tag 30.
|
||||
func (m SettlementInstructions) SetLastMkt(v string) {
|
||||
m.Set(field.NewLastMkt(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m SettlementInstructions) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m SettlementInstructions) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetAllocID sets AllocID, Tag 70.
|
||||
func (m SettlementInstructions) SetAllocID(v string) {
|
||||
m.Set(field.NewAllocID(v))
|
||||
}
|
||||
|
||||
// SetTradeDate sets TradeDate, Tag 75.
|
||||
func (m SettlementInstructions) SetTradeDate(v string) {
|
||||
m.Set(field.NewTradeDate(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m SettlementInstructions) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetAllocAccount sets AllocAccount, Tag 79.
|
||||
func (m SettlementInstructions) SetAllocAccount(v string) {
|
||||
m.Set(field.NewAllocAccount(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m SettlementInstructions) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// SetSettlInstMode sets SettlInstMode, Tag 160.
|
||||
func (m SettlementInstructions) SetSettlInstMode(v enum.SettlInstMode) {
|
||||
m.Set(field.NewSettlInstMode(v))
|
||||
}
|
||||
|
||||
// SetSettlInstID sets SettlInstID, Tag 162.
|
||||
func (m SettlementInstructions) SetSettlInstID(v string) {
|
||||
m.Set(field.NewSettlInstID(v))
|
||||
}
|
||||
|
||||
// SetSettlInstTransType sets SettlInstTransType, Tag 163.
|
||||
func (m SettlementInstructions) SetSettlInstTransType(v enum.SettlInstTransType) {
|
||||
m.Set(field.NewSettlInstTransType(v))
|
||||
}
|
||||
|
||||
// SetSettlInstSource sets SettlInstSource, Tag 165.
|
||||
func (m SettlementInstructions) SetSettlInstSource(v enum.SettlInstSource) {
|
||||
m.Set(field.NewSettlInstSource(v))
|
||||
}
|
||||
|
||||
// SetSettlLocation sets SettlLocation, Tag 166.
|
||||
func (m SettlementInstructions) SetSettlLocation(v enum.SettlLocation) {
|
||||
m.Set(field.NewSettlLocation(v))
|
||||
}
|
||||
|
||||
// SetSecurityType sets SecurityType, Tag 167.
|
||||
func (m SettlementInstructions) SetSecurityType(v enum.SecurityType) {
|
||||
m.Set(field.NewSecurityType(v))
|
||||
}
|
||||
|
||||
// SetEffectiveTime sets EffectiveTime, Tag 168.
|
||||
func (m SettlementInstructions) SetEffectiveTime(v time.Time) {
|
||||
m.Set(field.NewEffectiveTime(v))
|
||||
}
|
||||
|
||||
// SetStandInstDbType sets StandInstDbType, Tag 169.
|
||||
func (m SettlementInstructions) SetStandInstDbType(v enum.StandInstDbType) {
|
||||
m.Set(field.NewStandInstDbType(v))
|
||||
}
|
||||
|
||||
// SetStandInstDbName sets StandInstDbName, Tag 170.
|
||||
func (m SettlementInstructions) SetStandInstDbName(v string) {
|
||||
m.Set(field.NewStandInstDbName(v))
|
||||
}
|
||||
|
||||
// SetStandInstDbID sets StandInstDbID, Tag 171.
|
||||
func (m SettlementInstructions) SetStandInstDbID(v string) {
|
||||
m.Set(field.NewStandInstDbID(v))
|
||||
}
|
||||
|
||||
// SetSettlDeliveryType sets SettlDeliveryType, Tag 172.
|
||||
func (m SettlementInstructions) SetSettlDeliveryType(v enum.SettlDeliveryType) {
|
||||
m.Set(field.NewSettlDeliveryType(v))
|
||||
}
|
||||
|
||||
// SetSettlDepositoryCode sets SettlDepositoryCode, Tag 173.
|
||||
func (m SettlementInstructions) SetSettlDepositoryCode(v string) {
|
||||
m.Set(field.NewSettlDepositoryCode(v))
|
||||
}
|
||||
|
||||
// SetSettlBrkrCode sets SettlBrkrCode, Tag 174.
|
||||
func (m SettlementInstructions) SetSettlBrkrCode(v string) {
|
||||
m.Set(field.NewSettlBrkrCode(v))
|
||||
}
|
||||
|
||||
// SetSettlInstCode sets SettlInstCode, Tag 175.
|
||||
func (m SettlementInstructions) SetSettlInstCode(v string) {
|
||||
m.Set(field.NewSettlInstCode(v))
|
||||
}
|
||||
|
||||
// SetSecuritySettlAgentName sets SecuritySettlAgentName, Tag 176.
|
||||
func (m SettlementInstructions) SetSecuritySettlAgentName(v string) {
|
||||
m.Set(field.NewSecuritySettlAgentName(v))
|
||||
}
|
||||
|
||||
// SetSecuritySettlAgentCode sets SecuritySettlAgentCode, Tag 177.
|
||||
func (m SettlementInstructions) SetSecuritySettlAgentCode(v string) {
|
||||
m.Set(field.NewSecuritySettlAgentCode(v))
|
||||
}
|
||||
|
||||
// SetSecuritySettlAgentAcctNum sets SecuritySettlAgentAcctNum, Tag 178.
|
||||
func (m SettlementInstructions) SetSecuritySettlAgentAcctNum(v string) {
|
||||
m.Set(field.NewSecuritySettlAgentAcctNum(v))
|
||||
}
|
||||
|
||||
// SetSecuritySettlAgentAcctName sets SecuritySettlAgentAcctName, Tag 179.
|
||||
func (m SettlementInstructions) SetSecuritySettlAgentAcctName(v string) {
|
||||
m.Set(field.NewSecuritySettlAgentAcctName(v))
|
||||
}
|
||||
|
||||
// SetSecuritySettlAgentContactName sets SecuritySettlAgentContactName, Tag 180.
|
||||
func (m SettlementInstructions) SetSecuritySettlAgentContactName(v string) {
|
||||
m.Set(field.NewSecuritySettlAgentContactName(v))
|
||||
}
|
||||
|
||||
// SetSecuritySettlAgentContactPhone sets SecuritySettlAgentContactPhone, Tag 181.
|
||||
func (m SettlementInstructions) SetSecuritySettlAgentContactPhone(v string) {
|
||||
m.Set(field.NewSecuritySettlAgentContactPhone(v))
|
||||
}
|
||||
|
||||
// SetCashSettlAgentName sets CashSettlAgentName, Tag 182.
|
||||
func (m SettlementInstructions) SetCashSettlAgentName(v string) {
|
||||
m.Set(field.NewCashSettlAgentName(v))
|
||||
}
|
||||
|
||||
// SetCashSettlAgentCode sets CashSettlAgentCode, Tag 183.
|
||||
func (m SettlementInstructions) SetCashSettlAgentCode(v string) {
|
||||
m.Set(field.NewCashSettlAgentCode(v))
|
||||
}
|
||||
|
||||
// SetCashSettlAgentAcctNum sets CashSettlAgentAcctNum, Tag 184.
|
||||
func (m SettlementInstructions) SetCashSettlAgentAcctNum(v string) {
|
||||
m.Set(field.NewCashSettlAgentAcctNum(v))
|
||||
}
|
||||
|
||||
// SetCashSettlAgentAcctName sets CashSettlAgentAcctName, Tag 185.
|
||||
func (m SettlementInstructions) SetCashSettlAgentAcctName(v string) {
|
||||
m.Set(field.NewCashSettlAgentAcctName(v))
|
||||
}
|
||||
|
||||
// SetCashSettlAgentContactName sets CashSettlAgentContactName, Tag 186.
|
||||
func (m SettlementInstructions) SetCashSettlAgentContactName(v string) {
|
||||
m.Set(field.NewCashSettlAgentContactName(v))
|
||||
}
|
||||
|
||||
// SetCashSettlAgentContactPhone sets CashSettlAgentContactPhone, Tag 187.
|
||||
func (m SettlementInstructions) SetCashSettlAgentContactPhone(v string) {
|
||||
m.Set(field.NewCashSettlAgentContactPhone(v))
|
||||
}
|
||||
|
||||
// SetSettlInstRefID sets SettlInstRefID, Tag 214.
|
||||
func (m SettlementInstructions) SetSettlInstRefID(v string) {
|
||||
m.Set(field.NewSettlInstRefID(v))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m SettlementInstructions) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// GetLastMkt gets LastMkt, Tag 30.
|
||||
func (m SettlementInstructions) GetLastMkt() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.LastMktField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m SettlementInstructions) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTransactTime gets TransactTime, Tag 60.
|
||||
func (m SettlementInstructions) 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 SettlementInstructions) GetAllocID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AllocIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradeDate gets TradeDate, Tag 75.
|
||||
func (m SettlementInstructions) GetTradeDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TradeDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m SettlementInstructions) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAllocAccount gets AllocAccount, Tag 79.
|
||||
func (m SettlementInstructions) GetAllocAccount() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AllocAccountField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m SettlementInstructions) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlInstMode gets SettlInstMode, Tag 160.
|
||||
func (m SettlementInstructions) GetSettlInstMode() (v enum.SettlInstMode, err quickfix.MessageRejectError) {
|
||||
var f field.SettlInstModeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlInstID gets SettlInstID, Tag 162.
|
||||
func (m SettlementInstructions) GetSettlInstID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SettlInstIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlInstTransType gets SettlInstTransType, Tag 163.
|
||||
func (m SettlementInstructions) GetSettlInstTransType() (v enum.SettlInstTransType, err quickfix.MessageRejectError) {
|
||||
var f field.SettlInstTransTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlInstSource gets SettlInstSource, Tag 165.
|
||||
func (m SettlementInstructions) GetSettlInstSource() (v enum.SettlInstSource, err quickfix.MessageRejectError) {
|
||||
var f field.SettlInstSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlLocation gets SettlLocation, Tag 166.
|
||||
func (m SettlementInstructions) GetSettlLocation() (v enum.SettlLocation, err quickfix.MessageRejectError) {
|
||||
var f field.SettlLocationField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityType gets SecurityType, Tag 167.
|
||||
func (m SettlementInstructions) GetSecurityType() (v enum.SecurityType, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEffectiveTime gets EffectiveTime, Tag 168.
|
||||
func (m SettlementInstructions) GetEffectiveTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.EffectiveTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetStandInstDbType gets StandInstDbType, Tag 169.
|
||||
func (m SettlementInstructions) GetStandInstDbType() (v enum.StandInstDbType, err quickfix.MessageRejectError) {
|
||||
var f field.StandInstDbTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetStandInstDbName gets StandInstDbName, Tag 170.
|
||||
func (m SettlementInstructions) GetStandInstDbName() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.StandInstDbNameField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetStandInstDbID gets StandInstDbID, Tag 171.
|
||||
func (m SettlementInstructions) GetStandInstDbID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.StandInstDbIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlDeliveryType gets SettlDeliveryType, Tag 172.
|
||||
func (m SettlementInstructions) GetSettlDeliveryType() (v enum.SettlDeliveryType, err quickfix.MessageRejectError) {
|
||||
var f field.SettlDeliveryTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlDepositoryCode gets SettlDepositoryCode, Tag 173.
|
||||
func (m SettlementInstructions) GetSettlDepositoryCode() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SettlDepositoryCodeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlBrkrCode gets SettlBrkrCode, Tag 174.
|
||||
func (m SettlementInstructions) GetSettlBrkrCode() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SettlBrkrCodeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlInstCode gets SettlInstCode, Tag 175.
|
||||
func (m SettlementInstructions) GetSettlInstCode() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SettlInstCodeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecuritySettlAgentName gets SecuritySettlAgentName, Tag 176.
|
||||
func (m SettlementInstructions) GetSecuritySettlAgentName() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecuritySettlAgentNameField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecuritySettlAgentCode gets SecuritySettlAgentCode, Tag 177.
|
||||
func (m SettlementInstructions) GetSecuritySettlAgentCode() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecuritySettlAgentCodeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecuritySettlAgentAcctNum gets SecuritySettlAgentAcctNum, Tag 178.
|
||||
func (m SettlementInstructions) GetSecuritySettlAgentAcctNum() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecuritySettlAgentAcctNumField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecuritySettlAgentAcctName gets SecuritySettlAgentAcctName, Tag 179.
|
||||
func (m SettlementInstructions) GetSecuritySettlAgentAcctName() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecuritySettlAgentAcctNameField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecuritySettlAgentContactName gets SecuritySettlAgentContactName, Tag 180.
|
||||
func (m SettlementInstructions) GetSecuritySettlAgentContactName() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecuritySettlAgentContactNameField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecuritySettlAgentContactPhone gets SecuritySettlAgentContactPhone, Tag 181.
|
||||
func (m SettlementInstructions) GetSecuritySettlAgentContactPhone() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecuritySettlAgentContactPhoneField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCashSettlAgentName gets CashSettlAgentName, Tag 182.
|
||||
func (m SettlementInstructions) GetCashSettlAgentName() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CashSettlAgentNameField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCashSettlAgentCode gets CashSettlAgentCode, Tag 183.
|
||||
func (m SettlementInstructions) GetCashSettlAgentCode() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CashSettlAgentCodeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCashSettlAgentAcctNum gets CashSettlAgentAcctNum, Tag 184.
|
||||
func (m SettlementInstructions) GetCashSettlAgentAcctNum() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CashSettlAgentAcctNumField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCashSettlAgentAcctName gets CashSettlAgentAcctName, Tag 185.
|
||||
func (m SettlementInstructions) GetCashSettlAgentAcctName() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CashSettlAgentAcctNameField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCashSettlAgentContactName gets CashSettlAgentContactName, Tag 186.
|
||||
func (m SettlementInstructions) GetCashSettlAgentContactName() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CashSettlAgentContactNameField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCashSettlAgentContactPhone gets CashSettlAgentContactPhone, Tag 187.
|
||||
func (m SettlementInstructions) GetCashSettlAgentContactPhone() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CashSettlAgentContactPhoneField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlInstRefID gets SettlInstRefID, Tag 214.
|
||||
func (m SettlementInstructions) GetSettlInstRefID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SettlInstRefIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradingSessionID gets TradingSessionID, Tag 336.
|
||||
func (m SettlementInstructions) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
||||
var f field.TradingSessionIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasLastMkt returns true if LastMkt is present, Tag 30.
|
||||
func (m SettlementInstructions) HasLastMkt() bool {
|
||||
return m.Has(tag.LastMkt)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m SettlementInstructions) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m SettlementInstructions) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasAllocID returns true if AllocID is present, Tag 70.
|
||||
func (m SettlementInstructions) HasAllocID() bool {
|
||||
return m.Has(tag.AllocID)
|
||||
}
|
||||
|
||||
// HasTradeDate returns true if TradeDate is present, Tag 75.
|
||||
func (m SettlementInstructions) HasTradeDate() bool {
|
||||
return m.Has(tag.TradeDate)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m SettlementInstructions) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasAllocAccount returns true if AllocAccount is present, Tag 79.
|
||||
func (m SettlementInstructions) HasAllocAccount() bool {
|
||||
return m.Has(tag.AllocAccount)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m SettlementInstructions) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
|
||||
// HasSettlInstMode returns true if SettlInstMode is present, Tag 160.
|
||||
func (m SettlementInstructions) HasSettlInstMode() bool {
|
||||
return m.Has(tag.SettlInstMode)
|
||||
}
|
||||
|
||||
// HasSettlInstID returns true if SettlInstID is present, Tag 162.
|
||||
func (m SettlementInstructions) HasSettlInstID() bool {
|
||||
return m.Has(tag.SettlInstID)
|
||||
}
|
||||
|
||||
// HasSettlInstTransType returns true if SettlInstTransType is present, Tag 163.
|
||||
func (m SettlementInstructions) HasSettlInstTransType() bool {
|
||||
return m.Has(tag.SettlInstTransType)
|
||||
}
|
||||
|
||||
// HasSettlInstSource returns true if SettlInstSource is present, Tag 165.
|
||||
func (m SettlementInstructions) HasSettlInstSource() bool {
|
||||
return m.Has(tag.SettlInstSource)
|
||||
}
|
||||
|
||||
// HasSettlLocation returns true if SettlLocation is present, Tag 166.
|
||||
func (m SettlementInstructions) HasSettlLocation() bool {
|
||||
return m.Has(tag.SettlLocation)
|
||||
}
|
||||
|
||||
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
||||
func (m SettlementInstructions) HasSecurityType() bool {
|
||||
return m.Has(tag.SecurityType)
|
||||
}
|
||||
|
||||
// HasEffectiveTime returns true if EffectiveTime is present, Tag 168.
|
||||
func (m SettlementInstructions) HasEffectiveTime() bool {
|
||||
return m.Has(tag.EffectiveTime)
|
||||
}
|
||||
|
||||
// HasStandInstDbType returns true if StandInstDbType is present, Tag 169.
|
||||
func (m SettlementInstructions) HasStandInstDbType() bool {
|
||||
return m.Has(tag.StandInstDbType)
|
||||
}
|
||||
|
||||
// HasStandInstDbName returns true if StandInstDbName is present, Tag 170.
|
||||
func (m SettlementInstructions) HasStandInstDbName() bool {
|
||||
return m.Has(tag.StandInstDbName)
|
||||
}
|
||||
|
||||
// HasStandInstDbID returns true if StandInstDbID is present, Tag 171.
|
||||
func (m SettlementInstructions) HasStandInstDbID() bool {
|
||||
return m.Has(tag.StandInstDbID)
|
||||
}
|
||||
|
||||
// HasSettlDeliveryType returns true if SettlDeliveryType is present, Tag 172.
|
||||
func (m SettlementInstructions) HasSettlDeliveryType() bool {
|
||||
return m.Has(tag.SettlDeliveryType)
|
||||
}
|
||||
|
||||
// HasSettlDepositoryCode returns true if SettlDepositoryCode is present, Tag 173.
|
||||
func (m SettlementInstructions) HasSettlDepositoryCode() bool {
|
||||
return m.Has(tag.SettlDepositoryCode)
|
||||
}
|
||||
|
||||
// HasSettlBrkrCode returns true if SettlBrkrCode is present, Tag 174.
|
||||
func (m SettlementInstructions) HasSettlBrkrCode() bool {
|
||||
return m.Has(tag.SettlBrkrCode)
|
||||
}
|
||||
|
||||
// HasSettlInstCode returns true if SettlInstCode is present, Tag 175.
|
||||
func (m SettlementInstructions) HasSettlInstCode() bool {
|
||||
return m.Has(tag.SettlInstCode)
|
||||
}
|
||||
|
||||
// HasSecuritySettlAgentName returns true if SecuritySettlAgentName is present, Tag 176.
|
||||
func (m SettlementInstructions) HasSecuritySettlAgentName() bool {
|
||||
return m.Has(tag.SecuritySettlAgentName)
|
||||
}
|
||||
|
||||
// HasSecuritySettlAgentCode returns true if SecuritySettlAgentCode is present, Tag 177.
|
||||
func (m SettlementInstructions) HasSecuritySettlAgentCode() bool {
|
||||
return m.Has(tag.SecuritySettlAgentCode)
|
||||
}
|
||||
|
||||
// HasSecuritySettlAgentAcctNum returns true if SecuritySettlAgentAcctNum is present, Tag 178.
|
||||
func (m SettlementInstructions) HasSecuritySettlAgentAcctNum() bool {
|
||||
return m.Has(tag.SecuritySettlAgentAcctNum)
|
||||
}
|
||||
|
||||
// HasSecuritySettlAgentAcctName returns true if SecuritySettlAgentAcctName is present, Tag 179.
|
||||
func (m SettlementInstructions) HasSecuritySettlAgentAcctName() bool {
|
||||
return m.Has(tag.SecuritySettlAgentAcctName)
|
||||
}
|
||||
|
||||
// HasSecuritySettlAgentContactName returns true if SecuritySettlAgentContactName is present, Tag 180.
|
||||
func (m SettlementInstructions) HasSecuritySettlAgentContactName() bool {
|
||||
return m.Has(tag.SecuritySettlAgentContactName)
|
||||
}
|
||||
|
||||
// HasSecuritySettlAgentContactPhone returns true if SecuritySettlAgentContactPhone is present, Tag 181.
|
||||
func (m SettlementInstructions) HasSecuritySettlAgentContactPhone() bool {
|
||||
return m.Has(tag.SecuritySettlAgentContactPhone)
|
||||
}
|
||||
|
||||
// HasCashSettlAgentName returns true if CashSettlAgentName is present, Tag 182.
|
||||
func (m SettlementInstructions) HasCashSettlAgentName() bool {
|
||||
return m.Has(tag.CashSettlAgentName)
|
||||
}
|
||||
|
||||
// HasCashSettlAgentCode returns true if CashSettlAgentCode is present, Tag 183.
|
||||
func (m SettlementInstructions) HasCashSettlAgentCode() bool {
|
||||
return m.Has(tag.CashSettlAgentCode)
|
||||
}
|
||||
|
||||
// HasCashSettlAgentAcctNum returns true if CashSettlAgentAcctNum is present, Tag 184.
|
||||
func (m SettlementInstructions) HasCashSettlAgentAcctNum() bool {
|
||||
return m.Has(tag.CashSettlAgentAcctNum)
|
||||
}
|
||||
|
||||
// HasCashSettlAgentAcctName returns true if CashSettlAgentAcctName is present, Tag 185.
|
||||
func (m SettlementInstructions) HasCashSettlAgentAcctName() bool {
|
||||
return m.Has(tag.CashSettlAgentAcctName)
|
||||
}
|
||||
|
||||
// HasCashSettlAgentContactName returns true if CashSettlAgentContactName is present, Tag 186.
|
||||
func (m SettlementInstructions) HasCashSettlAgentContactName() bool {
|
||||
return m.Has(tag.CashSettlAgentContactName)
|
||||
}
|
||||
|
||||
// HasCashSettlAgentContactPhone returns true if CashSettlAgentContactPhone is present, Tag 187.
|
||||
func (m SettlementInstructions) HasCashSettlAgentContactPhone() bool {
|
||||
return m.Has(tag.CashSettlAgentContactPhone)
|
||||
}
|
||||
|
||||
// HasSettlInstRefID returns true if SettlInstRefID is present, Tag 214.
|
||||
func (m SettlementInstructions) HasSettlInstRefID() bool {
|
||||
return m.Has(tag.SettlInstRefID)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m SettlementInstructions) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
75
quickfix/gen/fix42/testrequest/TestRequest.generated.go
Normal file
75
quickfix/gen/fix42/testrequest/TestRequest.generated.go
Normal file
@ -0,0 +1,75 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package testrequest
|
||||
|
||||
import (
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/fix42"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// TestRequest is the fix42 TestRequest type, MsgType = 1.
|
||||
type TestRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a TestRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) TestRequest {
|
||||
return TestRequest{
|
||||
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 TestRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a TestRequest initialized with the required fields for TestRequest.
|
||||
func New(testreqid field.TestReqIDField) (m TestRequest) {
|
||||
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("1"))
|
||||
m.Set(testreqid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg TestRequest, 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", "1", r
|
||||
}
|
||||
|
||||
// SetTestReqID sets TestReqID, Tag 112.
|
||||
func (m TestRequest) SetTestReqID(v string) {
|
||||
m.Set(field.NewTestReqID(v))
|
||||
}
|
||||
|
||||
// GetTestReqID gets TestReqID, Tag 112.
|
||||
func (m TestRequest) GetTestReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TestReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasTestReqID returns true if TestReqID is present, Tag 112.
|
||||
func (m TestRequest) HasTestReqID() bool {
|
||||
return m.Has(tag.TestReqID)
|
||||
}
|
||||
@ -0,0 +1,347 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package tradingsessionstatus
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// TradingSessionStatus is the fix42 TradingSessionStatus type, MsgType = h.
|
||||
type TradingSessionStatus struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a TradingSessionStatus from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) TradingSessionStatus {
|
||||
return TradingSessionStatus{
|
||||
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 TradingSessionStatus) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a TradingSessionStatus initialized with the required fields for TradingSessionStatus.
|
||||
func New(tradingsessionid field.TradingSessionIDField, tradsesstatus field.TradSesStatusField) (m TradingSessionStatus) {
|
||||
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("h"))
|
||||
m.Set(tradingsessionid)
|
||||
m.Set(tradsesstatus)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg TradingSessionStatus, 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", "h", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m TradingSessionStatus) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetUnsolicitedIndicator sets UnsolicitedIndicator, Tag 325.
|
||||
func (m TradingSessionStatus) SetUnsolicitedIndicator(v bool) {
|
||||
m.Set(field.NewUnsolicitedIndicator(v))
|
||||
}
|
||||
|
||||
// SetTradSesReqID sets TradSesReqID, Tag 335.
|
||||
func (m TradingSessionStatus) SetTradSesReqID(v string) {
|
||||
m.Set(field.NewTradSesReqID(v))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m TradingSessionStatus) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// SetTradSesMethod sets TradSesMethod, Tag 338.
|
||||
func (m TradingSessionStatus) SetTradSesMethod(v enum.TradSesMethod) {
|
||||
m.Set(field.NewTradSesMethod(v))
|
||||
}
|
||||
|
||||
// SetTradSesMode sets TradSesMode, Tag 339.
|
||||
func (m TradingSessionStatus) SetTradSesMode(v enum.TradSesMode) {
|
||||
m.Set(field.NewTradSesMode(v))
|
||||
}
|
||||
|
||||
// SetTradSesStatus sets TradSesStatus, Tag 340.
|
||||
func (m TradingSessionStatus) SetTradSesStatus(v enum.TradSesStatus) {
|
||||
m.Set(field.NewTradSesStatus(v))
|
||||
}
|
||||
|
||||
// SetTradSesStartTime sets TradSesStartTime, Tag 341.
|
||||
func (m TradingSessionStatus) SetTradSesStartTime(v time.Time) {
|
||||
m.Set(field.NewTradSesStartTime(v))
|
||||
}
|
||||
|
||||
// SetTradSesOpenTime sets TradSesOpenTime, Tag 342.
|
||||
func (m TradingSessionStatus) SetTradSesOpenTime(v time.Time) {
|
||||
m.Set(field.NewTradSesOpenTime(v))
|
||||
}
|
||||
|
||||
// SetTradSesPreCloseTime sets TradSesPreCloseTime, Tag 343.
|
||||
func (m TradingSessionStatus) SetTradSesPreCloseTime(v time.Time) {
|
||||
m.Set(field.NewTradSesPreCloseTime(v))
|
||||
}
|
||||
|
||||
// SetTradSesCloseTime sets TradSesCloseTime, Tag 344.
|
||||
func (m TradingSessionStatus) SetTradSesCloseTime(v time.Time) {
|
||||
m.Set(field.NewTradSesCloseTime(v))
|
||||
}
|
||||
|
||||
// SetTradSesEndTime sets TradSesEndTime, Tag 345.
|
||||
func (m TradingSessionStatus) SetTradSesEndTime(v time.Time) {
|
||||
m.Set(field.NewTradSesEndTime(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m TradingSessionStatus) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m TradingSessionStatus) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387.
|
||||
func (m TradingSessionStatus) SetTotalVolumeTraded(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewTotalVolumeTraded(value, scale))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m TradingSessionStatus) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetUnsolicitedIndicator gets UnsolicitedIndicator, Tag 325.
|
||||
func (m TradingSessionStatus) GetUnsolicitedIndicator() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.UnsolicitedIndicatorField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesReqID gets TradSesReqID, Tag 335.
|
||||
func (m TradingSessionStatus) GetTradSesReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradingSessionID gets TradingSessionID, Tag 336.
|
||||
func (m TradingSessionStatus) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
||||
var f field.TradingSessionIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesMethod gets TradSesMethod, Tag 338.
|
||||
func (m TradingSessionStatus) GetTradSesMethod() (v enum.TradSesMethod, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesMethodField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesMode gets TradSesMode, Tag 339.
|
||||
func (m TradingSessionStatus) GetTradSesMode() (v enum.TradSesMode, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesModeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesStatus gets TradSesStatus, Tag 340.
|
||||
func (m TradingSessionStatus) GetTradSesStatus() (v enum.TradSesStatus, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesStatusField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesStartTime gets TradSesStartTime, Tag 341.
|
||||
func (m TradingSessionStatus) GetTradSesStartTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesStartTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesOpenTime gets TradSesOpenTime, Tag 342.
|
||||
func (m TradingSessionStatus) GetTradSesOpenTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesOpenTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesPreCloseTime gets TradSesPreCloseTime, Tag 343.
|
||||
func (m TradingSessionStatus) GetTradSesPreCloseTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesPreCloseTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesCloseTime gets TradSesCloseTime, Tag 344.
|
||||
func (m TradingSessionStatus) GetTradSesCloseTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesCloseTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesEndTime gets TradSesEndTime, Tag 345.
|
||||
func (m TradingSessionStatus) GetTradSesEndTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesEndTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m TradingSessionStatus) 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 TradingSessionStatus) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTotalVolumeTraded gets TotalVolumeTraded, Tag 387.
|
||||
func (m TradingSessionStatus) GetTotalVolumeTraded() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.TotalVolumeTradedField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m TradingSessionStatus) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasUnsolicitedIndicator returns true if UnsolicitedIndicator is present, Tag 325.
|
||||
func (m TradingSessionStatus) HasUnsolicitedIndicator() bool {
|
||||
return m.Has(tag.UnsolicitedIndicator)
|
||||
}
|
||||
|
||||
// HasTradSesReqID returns true if TradSesReqID is present, Tag 335.
|
||||
func (m TradingSessionStatus) HasTradSesReqID() bool {
|
||||
return m.Has(tag.TradSesReqID)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m TradingSessionStatus) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
|
||||
// HasTradSesMethod returns true if TradSesMethod is present, Tag 338.
|
||||
func (m TradingSessionStatus) HasTradSesMethod() bool {
|
||||
return m.Has(tag.TradSesMethod)
|
||||
}
|
||||
|
||||
// HasTradSesMode returns true if TradSesMode is present, Tag 339.
|
||||
func (m TradingSessionStatus) HasTradSesMode() bool {
|
||||
return m.Has(tag.TradSesMode)
|
||||
}
|
||||
|
||||
// HasTradSesStatus returns true if TradSesStatus is present, Tag 340.
|
||||
func (m TradingSessionStatus) HasTradSesStatus() bool {
|
||||
return m.Has(tag.TradSesStatus)
|
||||
}
|
||||
|
||||
// HasTradSesStartTime returns true if TradSesStartTime is present, Tag 341.
|
||||
func (m TradingSessionStatus) HasTradSesStartTime() bool {
|
||||
return m.Has(tag.TradSesStartTime)
|
||||
}
|
||||
|
||||
// HasTradSesOpenTime returns true if TradSesOpenTime is present, Tag 342.
|
||||
func (m TradingSessionStatus) HasTradSesOpenTime() bool {
|
||||
return m.Has(tag.TradSesOpenTime)
|
||||
}
|
||||
|
||||
// HasTradSesPreCloseTime returns true if TradSesPreCloseTime is present, Tag 343.
|
||||
func (m TradingSessionStatus) HasTradSesPreCloseTime() bool {
|
||||
return m.Has(tag.TradSesPreCloseTime)
|
||||
}
|
||||
|
||||
// HasTradSesCloseTime returns true if TradSesCloseTime is present, Tag 344.
|
||||
func (m TradingSessionStatus) HasTradSesCloseTime() bool {
|
||||
return m.Has(tag.TradSesCloseTime)
|
||||
}
|
||||
|
||||
// HasTradSesEndTime returns true if TradSesEndTime is present, Tag 345.
|
||||
func (m TradingSessionStatus) HasTradSesEndTime() bool {
|
||||
return m.Has(tag.TradSesEndTime)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m TradingSessionStatus) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m TradingSessionStatus) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
|
||||
// HasTotalVolumeTraded returns true if TotalVolumeTraded is present, Tag 387.
|
||||
func (m TradingSessionStatus) HasTotalVolumeTraded() bool {
|
||||
return m.Has(tag.TotalVolumeTraded)
|
||||
}
|
||||
@ -0,0 +1,153 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package tradingsessionstatusrequest
|
||||
|
||||
import (
|
||||
"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"
|
||||
)
|
||||
|
||||
// TradingSessionStatusRequest is the fix42 TradingSessionStatusRequest type, MsgType = g.
|
||||
type TradingSessionStatusRequest struct {
|
||||
fix42.Header
|
||||
*quickfix.Body
|
||||
fix42.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a TradingSessionStatusRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) TradingSessionStatusRequest {
|
||||
return TradingSessionStatusRequest{
|
||||
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 TradingSessionStatusRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a TradingSessionStatusRequest initialized with the required fields for TradingSessionStatusRequest.
|
||||
func New(tradsesreqid field.TradSesReqIDField, subscriptionrequesttype field.SubscriptionRequestTypeField) (m TradingSessionStatusRequest) {
|
||||
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("g"))
|
||||
m.Set(tradsesreqid)
|
||||
m.Set(subscriptionrequesttype)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg TradingSessionStatusRequest, 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", "g", r
|
||||
}
|
||||
|
||||
// SetSubscriptionRequestType sets SubscriptionRequestType, Tag 263.
|
||||
func (m TradingSessionStatusRequest) SetSubscriptionRequestType(v enum.SubscriptionRequestType) {
|
||||
m.Set(field.NewSubscriptionRequestType(v))
|
||||
}
|
||||
|
||||
// SetTradSesReqID sets TradSesReqID, Tag 335.
|
||||
func (m TradingSessionStatusRequest) SetTradSesReqID(v string) {
|
||||
m.Set(field.NewTradSesReqID(v))
|
||||
}
|
||||
|
||||
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
||||
func (m TradingSessionStatusRequest) SetTradingSessionID(v enum.TradingSessionID) {
|
||||
m.Set(field.NewTradingSessionID(v))
|
||||
}
|
||||
|
||||
// SetTradSesMethod sets TradSesMethod, Tag 338.
|
||||
func (m TradingSessionStatusRequest) SetTradSesMethod(v enum.TradSesMethod) {
|
||||
m.Set(field.NewTradSesMethod(v))
|
||||
}
|
||||
|
||||
// SetTradSesMode sets TradSesMode, Tag 339.
|
||||
func (m TradingSessionStatusRequest) SetTradSesMode(v enum.TradSesMode) {
|
||||
m.Set(field.NewTradSesMode(v))
|
||||
}
|
||||
|
||||
// GetSubscriptionRequestType gets SubscriptionRequestType, Tag 263.
|
||||
func (m TradingSessionStatusRequest) GetSubscriptionRequestType() (v enum.SubscriptionRequestType, err quickfix.MessageRejectError) {
|
||||
var f field.SubscriptionRequestTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesReqID gets TradSesReqID, Tag 335.
|
||||
func (m TradingSessionStatusRequest) GetTradSesReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradingSessionID gets TradingSessionID, Tag 336.
|
||||
func (m TradingSessionStatusRequest) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
||||
var f field.TradingSessionIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesMethod gets TradSesMethod, Tag 338.
|
||||
func (m TradingSessionStatusRequest) GetTradSesMethod() (v enum.TradSesMethod, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesMethodField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradSesMode gets TradSesMode, Tag 339.
|
||||
func (m TradingSessionStatusRequest) GetTradSesMode() (v enum.TradSesMode, err quickfix.MessageRejectError) {
|
||||
var f field.TradSesModeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasSubscriptionRequestType returns true if SubscriptionRequestType is present, Tag 263.
|
||||
func (m TradingSessionStatusRequest) HasSubscriptionRequestType() bool {
|
||||
return m.Has(tag.SubscriptionRequestType)
|
||||
}
|
||||
|
||||
// HasTradSesReqID returns true if TradSesReqID is present, Tag 335.
|
||||
func (m TradingSessionStatusRequest) HasTradSesReqID() bool {
|
||||
return m.Has(tag.TradSesReqID)
|
||||
}
|
||||
|
||||
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
||||
func (m TradingSessionStatusRequest) HasTradingSessionID() bool {
|
||||
return m.Has(tag.TradingSessionID)
|
||||
}
|
||||
|
||||
// HasTradSesMethod returns true if TradSesMethod is present, Tag 338.
|
||||
func (m TradingSessionStatusRequest) HasTradSesMethod() bool {
|
||||
return m.Has(tag.TradSesMethod)
|
||||
}
|
||||
|
||||
// HasTradSesMode returns true if TradSesMode is present, Tag 339.
|
||||
func (m TradingSessionStatusRequest) HasTradSesMode() bool {
|
||||
return m.Has(tag.TradSesMode)
|
||||
}
|
||||
70
quickfix/gen/fix42/trailer.generated.go
Normal file
70
quickfix/gen/fix42/trailer.generated.go
Normal file
@ -0,0 +1,70 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package fix42
|
||||
|
||||
import (
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Trailer is the fix42 Trailer type.
|
||||
type Trailer struct {
|
||||
*quickfix.Trailer
|
||||
}
|
||||
|
||||
// SetCheckSum sets CheckSum, Tag 10.
|
||||
func (t Trailer) SetCheckSum(v string) {
|
||||
t.Set(field.NewCheckSum(v))
|
||||
}
|
||||
|
||||
// SetSignature sets Signature, Tag 89.
|
||||
func (t Trailer) SetSignature(v string) {
|
||||
t.Set(field.NewSignature(v))
|
||||
}
|
||||
|
||||
// SetSignatureLength sets SignatureLength, Tag 93.
|
||||
func (t Trailer) SetSignatureLength(v int) {
|
||||
t.Set(field.NewSignatureLength(v))
|
||||
}
|
||||
|
||||
// GetCheckSum gets CheckSum, Tag 10.
|
||||
func (t Trailer) GetCheckSum() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CheckSumField
|
||||
if err = t.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSignature gets Signature, Tag 89.
|
||||
func (t Trailer) GetSignature() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SignatureField
|
||||
if err = t.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSignatureLength gets SignatureLength, Tag 93.
|
||||
func (t Trailer) GetSignatureLength() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.SignatureLengthField
|
||||
if err = t.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasCheckSum returns true if CheckSum is present, Tag 10.
|
||||
func (t Trailer) HasCheckSum() bool {
|
||||
return t.Has(tag.CheckSum)
|
||||
}
|
||||
|
||||
// HasSignature returns true if Signature is present, Tag 89.
|
||||
func (t Trailer) HasSignature() bool {
|
||||
return t.Has(tag.Signature)
|
||||
}
|
||||
|
||||
// HasSignatureLength returns true if SignatureLength is present, Tag 93.
|
||||
func (t Trailer) HasSignatureLength() bool {
|
||||
return t.Has(tag.SignatureLength)
|
||||
}
|
||||
Reference in New Issue
Block a user