adding quickfix

This commit is contained in:
Ramiro Paz
2026-03-09 15:35:32 -03:00
parent 0e8fe168ef
commit fe588e92f1
1222 changed files with 1408232 additions and 1 deletions

View File

@ -0,0 +1,540 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Advertisement is the fix41 Advertisement type, MsgType = 7.
type Advertisement struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a Advertisement from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Advertisement {
return Advertisement{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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))
}
// 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
}
// 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)
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,213 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// AllocationACK is the fix41 AllocationACK type, MsgType = P.
type AllocationACK struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a AllocationACK from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) AllocationACK {
return AllocationACK{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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))
}
// 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
}
// 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)
}

View File

@ -0,0 +1,479 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// DontKnowTrade is the fix41 DontKnowTrade type, MsgType = Q.
type DontKnowTrade struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a DontKnowTrade from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) DontKnowTrade {
return DontKnowTrade{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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(dkreason field.DKReasonField, symbol field.SymbolField, side field.SideField) (m DontKnowTrade) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("Q"))
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.1", "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))
}
// 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
}
// 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)
}

View File

@ -0,0 +1,593 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Email is the fix41 Email type, MsgType = C.
type Email struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a Email from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Email {
return Email{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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))
}
// 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
}
// 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)
}
// 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))
}
// 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
}
// HasText returns true if Text is present, Tag 58.
func (m LinesOfText) HasText() bool {
return m.Has(tag.Text)
}
// 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),
},
),
}
}
// 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))
}
// 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))
}
// SetSecurityDesc sets SecurityDesc, Tag 107.
func (m NoRelatedSym) SetSecurityDesc(v string) {
m.Set(field.NewSecurityDesc(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
}
// 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
}
// 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
}
// 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)
}
// 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)
}
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
func (m NoRelatedSym) HasSecurityDesc() bool {
return m.Has(tag.SecurityDesc)
}
// 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.SecurityExchange),
quickfix.GroupElement(tag.Issuer),
quickfix.GroupElement(tag.SecurityDesc),
},
),
}
}
// 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)}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,441 @@
// Code generated by quickfix. DO NOT EDIT.
package fix41
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 fix41 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.1")
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))
}
// 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
}
// 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)
}

View 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Heartbeat is the fix41 Heartbeat type, MsgType = 0.
type Heartbeat struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a Heartbeat from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Heartbeat {
return Heartbeat{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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)
}

View File

@ -0,0 +1,647 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// IndicationofInterest is the fix41 IndicationofInterest type, MsgType = 6.
type IndicationofInterest struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a IndicationofInterest from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) IndicationofInterest {
return IndicationofInterest{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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))
}
// SetIOIOthSvc sets IOIOthSvc, Tag 24.
func (m IndicationofInterest) SetIOIOthSvc(v enum.IOIOthSvc) {
m.Set(field.NewIOIOthSvc(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))
}
// 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
}
// GetIOIOthSvc gets IOIOthSvc, Tag 24.
func (m IndicationofInterest) GetIOIOthSvc() (v enum.IOIOthSvc, err quickfix.MessageRejectError) {
var f field.IOIOthSvcField
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
}
// 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)
}
// HasIOIOthSvc returns true if IOIOthSvc is present, Tag 24.
func (m IndicationofInterest) HasIOIOthSvc() bool {
return m.Has(tag.IOIOthSvc)
}
// 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)
}
// 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)}
}

View File

@ -0,0 +1,113 @@
// Code generated by quickfix. DO NOT EDIT.
package listcancelrequest
import (
"quantex.com/qfixdpl/quickfix"
"quantex.com/qfixdpl/quickfix/gen/field"
"quantex.com/qfixdpl/quickfix/gen/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// ListCancelRequest is the fix41 ListCancelRequest type, MsgType = K.
type ListCancelRequest struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a ListCancelRequest from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) ListCancelRequest {
return ListCancelRequest{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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) (m ListCancelRequest) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("K"))
m.Set(listid)
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.1", "K", r
}
// SetText sets Text, Tag 58.
func (m ListCancelRequest) SetText(v string) {
m.Set(field.NewText(v))
}
// SetListID sets ListID, Tag 66.
func (m ListCancelRequest) SetListID(v string) {
m.Set(field.NewListID(v))
}
// SetWaveNo sets WaveNo, Tag 105.
func (m ListCancelRequest) SetWaveNo(v string) {
m.Set(field.NewWaveNo(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
}
// 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
}
// GetWaveNo gets WaveNo, Tag 105.
func (m ListCancelRequest) GetWaveNo() (v string, err quickfix.MessageRejectError) {
var f field.WaveNoField
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)
}
// HasListID returns true if ListID is present, Tag 66.
func (m ListCancelRequest) HasListID() bool {
return m.Has(tag.ListID)
}
// HasWaveNo returns true if WaveNo is present, Tag 105.
func (m ListCancelRequest) HasWaveNo() bool {
return m.Has(tag.WaveNo)
}

View File

@ -0,0 +1,113 @@
// Code generated by quickfix. DO NOT EDIT.
package listexecute
import (
"quantex.com/qfixdpl/quickfix"
"quantex.com/qfixdpl/quickfix/gen/field"
"quantex.com/qfixdpl/quickfix/gen/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// ListExecute is the fix41 ListExecute type, MsgType = L.
type ListExecute struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a ListExecute from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) ListExecute {
return ListExecute{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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) (m ListExecute) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("L"))
m.Set(listid)
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.1", "L", r
}
// SetText sets Text, Tag 58.
func (m ListExecute) SetText(v string) {
m.Set(field.NewText(v))
}
// SetListID sets ListID, Tag 66.
func (m ListExecute) SetListID(v string) {
m.Set(field.NewListID(v))
}
// SetWaveNo sets WaveNo, Tag 105.
func (m ListExecute) SetWaveNo(v string) {
m.Set(field.NewWaveNo(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
}
// 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
}
// GetWaveNo gets WaveNo, Tag 105.
func (m ListExecute) GetWaveNo() (v string, err quickfix.MessageRejectError) {
var f field.WaveNoField
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)
}
// HasListID returns true if ListID is present, Tag 66.
func (m ListExecute) HasListID() bool {
return m.Has(tag.ListID)
}
// HasWaveNo returns true if WaveNo is present, Tag 105.
func (m ListExecute) HasWaveNo() bool {
return m.Has(tag.WaveNo)
}

View File

@ -0,0 +1,285 @@
// Code generated by quickfix. DO NOT EDIT.
package liststatus
import (
"github.com/shopspring/decimal"
"quantex.com/qfixdpl/quickfix"
"quantex.com/qfixdpl/quickfix/gen/field"
"quantex.com/qfixdpl/quickfix/gen/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// ListStatus is the fix41 ListStatus type, MsgType = N.
type ListStatus struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a ListStatus from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) ListStatus {
return ListStatus{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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, norpts field.NoRptsField, rptseq field.RptSeqField) (m ListStatus) {
m.Message = quickfix.NewMessage()
m.Header = fix41.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(norpts)
m.Set(rptseq)
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.1", "N", r
}
// SetListID sets ListID, Tag 66.
func (m ListStatus) SetListID(v string) {
m.Set(field.NewListID(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))
}
// SetWaveNo sets WaveNo, Tag 105.
func (m ListStatus) SetWaveNo(v string) {
m.Set(field.NewWaveNo(v))
}
// 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
}
// 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
}
// GetWaveNo gets WaveNo, Tag 105.
func (m ListStatus) GetWaveNo() (v string, err quickfix.MessageRejectError) {
var f field.WaveNoField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasListID returns true if ListID is present, Tag 66.
func (m ListStatus) HasListID() bool {
return m.Has(tag.ListID)
}
// 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)
}
// HasWaveNo returns true if WaveNo is present, Tag 105.
func (m ListStatus) HasWaveNo() bool {
return m.Has(tag.WaveNo)
}
// 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))
}
// 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))
}
// 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
}
// 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
}
// 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)
}
// 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)
}
// 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.LeavesQty),
quickfix.GroupElement(tag.CxlQty),
quickfix.GroupElement(tag.AvgPx),
},
),
}
}
// 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)}
}

View File

@ -0,0 +1,113 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// ListStatusRequest is the fix41 ListStatusRequest type, MsgType = M.
type ListStatusRequest struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a ListStatusRequest from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) ListStatusRequest {
return ListStatusRequest{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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))
}
// SetWaveNo sets WaveNo, Tag 105.
func (m ListStatusRequest) SetWaveNo(v string) {
m.Set(field.NewWaveNo(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
}
// GetWaveNo gets WaveNo, Tag 105.
func (m ListStatusRequest) GetWaveNo() (v string, err quickfix.MessageRejectError) {
var f field.WaveNoField
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)
}
// HasWaveNo returns true if WaveNo is present, Tag 105.
func (m ListStatusRequest) HasWaveNo() bool {
return m.Has(tag.WaveNo)
}

View File

@ -0,0 +1,153 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Logon is the fix41 Logon type, MsgType = A.
type Logon struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a Logon from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Logon {
return Logon{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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))
}
// 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
}
// 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)
}

View File

@ -0,0 +1,74 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Logout is the fix41 Logout type, MsgType = 5.
type Logout struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a Logout from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Logout {
return Logout{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "5", r
}
// SetText sets Text, Tag 58.
func (m Logout) SetText(v string) {
m.Set(field.NewText(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
}
// HasText returns true if Text is present, Tag 58.
func (m Logout) HasText() bool {
return m.Has(tag.Text)
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,553 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// News is the fix41 News type, MsgType = B.
type News struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a News from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) News {
return News{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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))
}
// 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
}
// 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)
}
// 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))
}
// 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
}
// HasText returns true if Text is present, Tag 58.
func (m LinesOfText) HasText() bool {
return m.Has(tag.Text)
}
// 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),
},
),
}
}
// 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))
}
// 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))
}
// SetSecurityDesc sets SecurityDesc, Tag 107.
func (m NoRelatedSym) SetSecurityDesc(v string) {
m.Set(field.NewSecurityDesc(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
}
// 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
}
// 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
}
// 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)
}
// 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)
}
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
func (m NoRelatedSym) HasSecurityDesc() bool {
return m.Has(tag.SecurityDesc)
}
// 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.SecurityExchange),
quickfix.GroupElement(tag.Issuer),
quickfix.GroupElement(tag.SecurityDesc),
},
),
}
}
// 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)}
}

View File

@ -0,0 +1,250 @@
// Code generated by quickfix. DO NOT EDIT.
package ordercancelreject
import (
"quantex.com/qfixdpl/quickfix"
"quantex.com/qfixdpl/quickfix/gen/enum"
"quantex.com/qfixdpl/quickfix/gen/field"
"quantex.com/qfixdpl/quickfix/gen/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// OrderCancelReject is the fix41 OrderCancelReject type, MsgType = 9.
type OrderCancelReject struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a OrderCancelReject from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) OrderCancelReject {
return OrderCancelReject{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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) (m OrderCancelReject) {
m.Message = quickfix.NewMessage()
m.Header = fix41.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)
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.1", "9", r
}
// 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))
}
// 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))
}
// 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
}
// 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
}
// 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)
}
// 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)
}

View File

@ -0,0 +1,499 @@
// Code generated by quickfix. DO NOT EDIT.
package ordercancelrequest
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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// OrderCancelRequest is the fix41 OrderCancelRequest type, MsgType = F.
type OrderCancelRequest struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a OrderCancelRequest from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) OrderCancelRequest {
return OrderCancelRequest{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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) (m OrderCancelRequest) {
m.Message = quickfix.NewMessage()
m.Header = fix41.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)
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.1", "F", r
}
// 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))
}
// 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))
}
// 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
}
// 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
}
// 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)
}
// 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)
}

View File

@ -0,0 +1,403 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// OrderStatusRequest is the fix41 OrderStatusRequest type, MsgType = H.
type OrderStatusRequest struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a OrderStatusRequest from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) OrderStatusRequest {
return OrderStatusRequest{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "H", r
}
// 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))
}
// 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
}
// 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)
}

View File

@ -0,0 +1,613 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Quote is the fix41 Quote type, MsgType = S.
type Quote struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a Quote from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Quote {
return Quote{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "S", r
}
// 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))
}
// 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
}
// 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)
}

View File

@ -0,0 +1,459 @@
// Code generated by quickfix. DO NOT EDIT.
package quoterequest
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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// QuoteRequest is the fix41 QuoteRequest type, MsgType = R.
type QuoteRequest struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a QuoteRequest from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) QuoteRequest {
return QuoteRequest{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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, symbol field.SymbolField) (m QuoteRequest) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("R"))
m.Set(quotereqid)
m.Set(symbol)
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.1", "R", r
}
// SetIDSource sets IDSource, Tag 22.
func (m QuoteRequest) SetIDSource(v enum.IDSource) {
m.Set(field.NewIDSource(v))
}
// SetOrderQty sets OrderQty, Tag 38.
func (m QuoteRequest) SetOrderQty(value decimal.Decimal, scale int32) {
m.Set(field.NewOrderQty(value, scale))
}
// SetOrdType sets OrdType, Tag 40.
func (m QuoteRequest) SetOrdType(v enum.OrdType) {
m.Set(field.NewOrdType(v))
}
// SetSecurityID sets SecurityID, Tag 48.
func (m QuoteRequest) SetSecurityID(v string) {
m.Set(field.NewSecurityID(v))
}
// SetSide sets Side, Tag 54.
func (m QuoteRequest) SetSide(v enum.Side) {
m.Set(field.NewSide(v))
}
// SetSymbol sets Symbol, Tag 55.
func (m QuoteRequest) SetSymbol(v string) {
m.Set(field.NewSymbol(v))
}
// SetFutSettDate sets FutSettDate, Tag 64.
func (m QuoteRequest) SetFutSettDate(v string) {
m.Set(field.NewFutSettDate(v))
}
// SetSymbolSfx sets SymbolSfx, Tag 65.
func (m QuoteRequest) SetSymbolSfx(v enum.SymbolSfx) {
m.Set(field.NewSymbolSfx(v))
}
// SetIssuer sets Issuer, Tag 106.
func (m QuoteRequest) SetIssuer(v string) {
m.Set(field.NewIssuer(v))
}
// SetSecurityDesc sets SecurityDesc, Tag 107.
func (m QuoteRequest) SetSecurityDesc(v string) {
m.Set(field.NewSecurityDesc(v))
}
// SetQuoteReqID sets QuoteReqID, Tag 131.
func (m QuoteRequest) SetQuoteReqID(v string) {
m.Set(field.NewQuoteReqID(v))
}
// SetPrevClosePx sets PrevClosePx, Tag 140.
func (m QuoteRequest) SetPrevClosePx(value decimal.Decimal, scale int32) {
m.Set(field.NewPrevClosePx(value, scale))
}
// SetSecurityType sets SecurityType, Tag 167.
func (m QuoteRequest) SetSecurityType(v enum.SecurityType) {
m.Set(field.NewSecurityType(v))
}
// SetOrderQty2 sets OrderQty2, Tag 192.
func (m QuoteRequest) SetOrderQty2(value decimal.Decimal, scale int32) {
m.Set(field.NewOrderQty2(value, scale))
}
// SetFutSettDate2 sets FutSettDate2, Tag 193.
func (m QuoteRequest) SetFutSettDate2(v string) {
m.Set(field.NewFutSettDate2(v))
}
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
func (m QuoteRequest) SetMaturityMonthYear(v string) {
m.Set(field.NewMaturityMonthYear(v))
}
// SetPutOrCall sets PutOrCall, Tag 201.
func (m QuoteRequest) SetPutOrCall(v enum.PutOrCall) {
m.Set(field.NewPutOrCall(v))
}
// SetStrikePrice sets StrikePrice, Tag 202.
func (m QuoteRequest) SetStrikePrice(value decimal.Decimal, scale int32) {
m.Set(field.NewStrikePrice(value, scale))
}
// SetMaturityDay sets MaturityDay, Tag 205.
func (m QuoteRequest) SetMaturityDay(v int) {
m.Set(field.NewMaturityDay(v))
}
// SetOptAttribute sets OptAttribute, Tag 206.
func (m QuoteRequest) SetOptAttribute(v string) {
m.Set(field.NewOptAttribute(v))
}
// SetSecurityExchange sets SecurityExchange, Tag 207.
func (m QuoteRequest) SetSecurityExchange(v string) {
m.Set(field.NewSecurityExchange(v))
}
// GetIDSource gets IDSource, Tag 22.
func (m QuoteRequest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
var f field.IDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOrderQty gets OrderQty, Tag 38.
func (m QuoteRequest) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.OrderQtyField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOrdType gets OrdType, Tag 40.
func (m QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) GetSymbol() (v string, err quickfix.MessageRejectError) {
var f field.SymbolField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetFutSettDate gets FutSettDate, Tag 64.
func (m QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
var f field.SecurityDescField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// 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
}
// GetPrevClosePx gets PrevClosePx, Tag 140.
func (m QuoteRequest) GetPrevClosePx() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.PrevClosePxField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSecurityType gets SecurityType, Tag 167.
func (m QuoteRequest) GetSecurityType() (v enum.SecurityType, err quickfix.MessageRejectError) {
var f field.SecurityTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOrderQty2 gets OrderQty2, Tag 192.
func (m QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) 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 QuoteRequest) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
var f field.SecurityExchangeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasIDSource returns true if IDSource is present, Tag 22.
func (m QuoteRequest) HasIDSource() bool {
return m.Has(tag.IDSource)
}
// HasOrderQty returns true if OrderQty is present, Tag 38.
func (m QuoteRequest) HasOrderQty() bool {
return m.Has(tag.OrderQty)
}
// HasOrdType returns true if OrdType is present, Tag 40.
func (m QuoteRequest) HasOrdType() bool {
return m.Has(tag.OrdType)
}
// HasSecurityID returns true if SecurityID is present, Tag 48.
func (m QuoteRequest) HasSecurityID() bool {
return m.Has(tag.SecurityID)
}
// HasSide returns true if Side is present, Tag 54.
func (m QuoteRequest) HasSide() bool {
return m.Has(tag.Side)
}
// HasSymbol returns true if Symbol is present, Tag 55.
func (m QuoteRequest) HasSymbol() bool {
return m.Has(tag.Symbol)
}
// HasFutSettDate returns true if FutSettDate is present, Tag 64.
func (m QuoteRequest) HasFutSettDate() bool {
return m.Has(tag.FutSettDate)
}
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
func (m QuoteRequest) HasSymbolSfx() bool {
return m.Has(tag.SymbolSfx)
}
// HasIssuer returns true if Issuer is present, Tag 106.
func (m QuoteRequest) HasIssuer() bool {
return m.Has(tag.Issuer)
}
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
func (m QuoteRequest) HasSecurityDesc() bool {
return m.Has(tag.SecurityDesc)
}
// HasQuoteReqID returns true if QuoteReqID is present, Tag 131.
func (m QuoteRequest) HasQuoteReqID() bool {
return m.Has(tag.QuoteReqID)
}
// HasPrevClosePx returns true if PrevClosePx is present, Tag 140.
func (m QuoteRequest) HasPrevClosePx() bool {
return m.Has(tag.PrevClosePx)
}
// HasSecurityType returns true if SecurityType is present, Tag 167.
func (m QuoteRequest) HasSecurityType() bool {
return m.Has(tag.SecurityType)
}
// HasOrderQty2 returns true if OrderQty2 is present, Tag 192.
func (m QuoteRequest) HasOrderQty2() bool {
return m.Has(tag.OrderQty2)
}
// HasFutSettDate2 returns true if FutSettDate2 is present, Tag 193.
func (m QuoteRequest) HasFutSettDate2() bool {
return m.Has(tag.FutSettDate2)
}
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
func (m QuoteRequest) HasMaturityMonthYear() bool {
return m.Has(tag.MaturityMonthYear)
}
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
func (m QuoteRequest) HasPutOrCall() bool {
return m.Has(tag.PutOrCall)
}
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
func (m QuoteRequest) HasStrikePrice() bool {
return m.Has(tag.StrikePrice)
}
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
func (m QuoteRequest) HasMaturityDay() bool {
return m.Has(tag.MaturityDay)
}
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
func (m QuoteRequest) HasOptAttribute() bool {
return m.Has(tag.OptAttribute)
}
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
func (m QuoteRequest) HasSecurityExchange() bool {
return m.Has(tag.SecurityExchange)
}

View File

@ -0,0 +1,94 @@
// Code generated by quickfix. DO NOT EDIT.
package reject
import (
"quantex.com/qfixdpl/quickfix"
"quantex.com/qfixdpl/quickfix/gen/field"
"quantex.com/qfixdpl/quickfix/gen/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Reject is the fix41 Reject type, MsgType = 3.
type Reject struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a Reject from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Reject {
return Reject{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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))
}
// 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
}
// 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)
}

View 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// ResendRequest is the fix41 ResendRequest type, MsgType = 2.
type ResendRequest struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a ResendRequest from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) ResendRequest {
return ResendRequest{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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)
}

View 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// SequenceReset is the fix41 SequenceReset type, MsgType = 4.
type SequenceReset struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a SequenceReset from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) SequenceReset {
return SequenceReset{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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)
}

View File

@ -0,0 +1,710 @@
// 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// SettlementInstructions is the fix41 SettlementInstructions type, MsgType = T.
type SettlementInstructions struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a SettlementInstructions from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) SettlementInstructions {
return SettlementInstructions{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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, settlinstmode field.SettlInstModeField, settlinstsource field.SettlInstSourceField, allocaccount field.AllocAccountField, transacttime field.TransactTimeField) (m SettlementInstructions) {
m.Message = quickfix.NewMessage()
m.Header = fix41.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(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.1", "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))
}
// 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
}
// 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)
}

View 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/fix41"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// TestRequest is the fix41 TestRequest type, MsgType = 1.
type TestRequest struct {
fix41.Header
*quickfix.Body
fix41.Trailer
Message *quickfix.Message
}
// FromMessage creates a TestRequest from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) TestRequest {
return TestRequest{
Header: fix41.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fix41.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 = fix41.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.1", "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)
}

View File

@ -0,0 +1,70 @@
// Code generated by quickfix. DO NOT EDIT.
package fix41
import (
"quantex.com/qfixdpl/quickfix"
"quantex.com/qfixdpl/quickfix/gen/field"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Trailer is the fix41 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)
}