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,664 @@
// Code generated by quickfix. DO NOT EDIT.
package fixt11
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 fixt11 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("FIXT.1.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))
}
// SetXmlDataLen sets XmlDataLen, Tag 212.
func (h Header) SetXmlDataLen(v int) {
h.Set(field.NewXmlDataLen(v))
}
// SetXmlData sets XmlData, Tag 213.
func (h Header) SetXmlData(v string) {
h.Set(field.NewXmlData(v))
}
// SetMessageEncoding sets MessageEncoding, Tag 347.
func (h Header) SetMessageEncoding(v enum.MessageEncoding) {
h.Set(field.NewMessageEncoding(v))
}
// SetLastMsgSeqNumProcessed sets LastMsgSeqNumProcessed, Tag 369.
func (h Header) SetLastMsgSeqNumProcessed(v int) {
h.Set(field.NewLastMsgSeqNumProcessed(v))
}
// SetNoHops sets NoHops, Tag 627.
func (h Header) SetNoHops(f NoHopsRepeatingGroup) {
h.SetGroup(f)
}
// SetApplVerID sets ApplVerID, Tag 1128.
func (h Header) SetApplVerID(v enum.ApplVerID) {
h.Set(field.NewApplVerID(v))
}
// SetCstmApplVerID sets CstmApplVerID, Tag 1129.
func (h Header) SetCstmApplVerID(v string) {
h.Set(field.NewCstmApplVerID(v))
}
// GetBeginString gets BeginString, Tag 8.
func (h Header) GetBeginString() (v string, err quickfix.MessageRejectError) {
var f field.BeginStringField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetBodyLength gets BodyLength, Tag 9.
func (h Header) GetBodyLength() (v int, err quickfix.MessageRejectError) {
var f field.BodyLengthField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetMsgSeqNum gets MsgSeqNum, Tag 34.
func (h Header) GetMsgSeqNum() (v int, err quickfix.MessageRejectError) {
var f field.MsgSeqNumField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetMsgType gets MsgType, Tag 35.
func (h Header) GetMsgType() (v enum.MsgType, err quickfix.MessageRejectError) {
var f field.MsgTypeField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetPossDupFlag gets PossDupFlag, Tag 43.
func (h Header) GetPossDupFlag() (v bool, err quickfix.MessageRejectError) {
var f field.PossDupFlagField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSenderCompID gets SenderCompID, Tag 49.
func (h Header) GetSenderCompID() (v string, err quickfix.MessageRejectError) {
var f field.SenderCompIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSenderSubID gets SenderSubID, Tag 50.
func (h Header) GetSenderSubID() (v string, err quickfix.MessageRejectError) {
var f field.SenderSubIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSendingTime gets SendingTime, Tag 52.
func (h Header) GetSendingTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.SendingTimeField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetTargetCompID gets TargetCompID, Tag 56.
func (h Header) GetTargetCompID() (v string, err quickfix.MessageRejectError) {
var f field.TargetCompIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetTargetSubID gets TargetSubID, Tag 57.
func (h Header) GetTargetSubID() (v string, err quickfix.MessageRejectError) {
var f field.TargetSubIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSecureDataLen gets SecureDataLen, Tag 90.
func (h Header) GetSecureDataLen() (v int, err quickfix.MessageRejectError) {
var f field.SecureDataLenField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSecureData gets SecureData, Tag 91.
func (h Header) GetSecureData() (v string, err quickfix.MessageRejectError) {
var f field.SecureDataField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetPossResend gets PossResend, Tag 97.
func (h Header) GetPossResend() (v bool, err quickfix.MessageRejectError) {
var f field.PossResendField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOnBehalfOfCompID gets OnBehalfOfCompID, Tag 115.
func (h Header) GetOnBehalfOfCompID() (v string, err quickfix.MessageRejectError) {
var f field.OnBehalfOfCompIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOnBehalfOfSubID gets OnBehalfOfSubID, Tag 116.
func (h Header) GetOnBehalfOfSubID() (v string, err quickfix.MessageRejectError) {
var f field.OnBehalfOfSubIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOrigSendingTime gets OrigSendingTime, Tag 122.
func (h Header) GetOrigSendingTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.OrigSendingTimeField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetDeliverToCompID gets DeliverToCompID, Tag 128.
func (h Header) GetDeliverToCompID() (v string, err quickfix.MessageRejectError) {
var f field.DeliverToCompIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetDeliverToSubID gets DeliverToSubID, Tag 129.
func (h Header) GetDeliverToSubID() (v string, err quickfix.MessageRejectError) {
var f field.DeliverToSubIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSenderLocationID gets SenderLocationID, Tag 142.
func (h Header) GetSenderLocationID() (v string, err quickfix.MessageRejectError) {
var f field.SenderLocationIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetTargetLocationID gets TargetLocationID, Tag 143.
func (h Header) GetTargetLocationID() (v string, err quickfix.MessageRejectError) {
var f field.TargetLocationIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOnBehalfOfLocationID gets OnBehalfOfLocationID, Tag 144.
func (h Header) GetOnBehalfOfLocationID() (v string, err quickfix.MessageRejectError) {
var f field.OnBehalfOfLocationIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetDeliverToLocationID gets DeliverToLocationID, Tag 145.
func (h Header) GetDeliverToLocationID() (v string, err quickfix.MessageRejectError) {
var f field.DeliverToLocationIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetXmlDataLen gets XmlDataLen, Tag 212.
func (h Header) GetXmlDataLen() (v int, err quickfix.MessageRejectError) {
var f field.XmlDataLenField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetXmlData gets XmlData, Tag 213.
func (h Header) GetXmlData() (v string, err quickfix.MessageRejectError) {
var f field.XmlDataField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetMessageEncoding gets MessageEncoding, Tag 347.
func (h Header) GetMessageEncoding() (v enum.MessageEncoding, err quickfix.MessageRejectError) {
var f field.MessageEncodingField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetLastMsgSeqNumProcessed gets LastMsgSeqNumProcessed, Tag 369.
func (h Header) GetLastMsgSeqNumProcessed() (v int, err quickfix.MessageRejectError) {
var f field.LastMsgSeqNumProcessedField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoHops gets NoHops, Tag 627.
func (h Header) GetNoHops() (NoHopsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoHopsRepeatingGroup()
err := h.GetGroup(f)
return f, err
}
// GetApplVerID gets ApplVerID, Tag 1128.
func (h Header) GetApplVerID() (v enum.ApplVerID, err quickfix.MessageRejectError) {
var f field.ApplVerIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetCstmApplVerID gets CstmApplVerID, Tag 1129.
func (h Header) GetCstmApplVerID() (v string, err quickfix.MessageRejectError) {
var f field.CstmApplVerIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasBeginString returns true if BeginString is present, Tag 8.
func (h Header) HasBeginString() bool {
return h.Has(tag.BeginString)
}
// HasBodyLength returns true if BodyLength is present, Tag 9.
func (h Header) HasBodyLength() bool {
return h.Has(tag.BodyLength)
}
// HasMsgSeqNum returns true if MsgSeqNum is present, Tag 34.
func (h Header) HasMsgSeqNum() bool {
return h.Has(tag.MsgSeqNum)
}
// HasMsgType returns true if MsgType is present, Tag 35.
func (h Header) HasMsgType() bool {
return h.Has(tag.MsgType)
}
// HasPossDupFlag returns true if PossDupFlag is present, Tag 43.
func (h Header) HasPossDupFlag() bool {
return h.Has(tag.PossDupFlag)
}
// HasSenderCompID returns true if SenderCompID is present, Tag 49.
func (h Header) HasSenderCompID() bool {
return h.Has(tag.SenderCompID)
}
// HasSenderSubID returns true if SenderSubID is present, Tag 50.
func (h Header) HasSenderSubID() bool {
return h.Has(tag.SenderSubID)
}
// HasSendingTime returns true if SendingTime is present, Tag 52.
func (h Header) HasSendingTime() bool {
return h.Has(tag.SendingTime)
}
// HasTargetCompID returns true if TargetCompID is present, Tag 56.
func (h Header) HasTargetCompID() bool {
return h.Has(tag.TargetCompID)
}
// HasTargetSubID returns true if TargetSubID is present, Tag 57.
func (h Header) HasTargetSubID() bool {
return h.Has(tag.TargetSubID)
}
// HasSecureDataLen returns true if SecureDataLen is present, Tag 90.
func (h Header) HasSecureDataLen() bool {
return h.Has(tag.SecureDataLen)
}
// HasSecureData returns true if SecureData is present, Tag 91.
func (h Header) HasSecureData() bool {
return h.Has(tag.SecureData)
}
// HasPossResend returns true if PossResend is present, Tag 97.
func (h Header) HasPossResend() bool {
return h.Has(tag.PossResend)
}
// HasOnBehalfOfCompID returns true if OnBehalfOfCompID is present, Tag 115.
func (h Header) HasOnBehalfOfCompID() bool {
return h.Has(tag.OnBehalfOfCompID)
}
// HasOnBehalfOfSubID returns true if OnBehalfOfSubID is present, Tag 116.
func (h Header) HasOnBehalfOfSubID() bool {
return h.Has(tag.OnBehalfOfSubID)
}
// HasOrigSendingTime returns true if OrigSendingTime is present, Tag 122.
func (h Header) HasOrigSendingTime() bool {
return h.Has(tag.OrigSendingTime)
}
// HasDeliverToCompID returns true if DeliverToCompID is present, Tag 128.
func (h Header) HasDeliverToCompID() bool {
return h.Has(tag.DeliverToCompID)
}
// HasDeliverToSubID returns true if DeliverToSubID is present, Tag 129.
func (h Header) HasDeliverToSubID() bool {
return h.Has(tag.DeliverToSubID)
}
// HasSenderLocationID returns true if SenderLocationID is present, Tag 142.
func (h Header) HasSenderLocationID() bool {
return h.Has(tag.SenderLocationID)
}
// HasTargetLocationID returns true if TargetLocationID is present, Tag 143.
func (h Header) HasTargetLocationID() bool {
return h.Has(tag.TargetLocationID)
}
// HasOnBehalfOfLocationID returns true if OnBehalfOfLocationID is present, Tag 144.
func (h Header) HasOnBehalfOfLocationID() bool {
return h.Has(tag.OnBehalfOfLocationID)
}
// HasDeliverToLocationID returns true if DeliverToLocationID is present, Tag 145.
func (h Header) HasDeliverToLocationID() bool {
return h.Has(tag.DeliverToLocationID)
}
// HasXmlDataLen returns true if XmlDataLen is present, Tag 212.
func (h Header) HasXmlDataLen() bool {
return h.Has(tag.XmlDataLen)
}
// HasXmlData returns true if XmlData is present, Tag 213.
func (h Header) HasXmlData() bool {
return h.Has(tag.XmlData)
}
// HasMessageEncoding returns true if MessageEncoding is present, Tag 347.
func (h Header) HasMessageEncoding() bool {
return h.Has(tag.MessageEncoding)
}
// HasLastMsgSeqNumProcessed returns true if LastMsgSeqNumProcessed is present, Tag 369.
func (h Header) HasLastMsgSeqNumProcessed() bool {
return h.Has(tag.LastMsgSeqNumProcessed)
}
// HasNoHops returns true if NoHops is present, Tag 627.
func (h Header) HasNoHops() bool {
return h.Has(tag.NoHops)
}
// HasApplVerID returns true if ApplVerID is present, Tag 1128.
func (h Header) HasApplVerID() bool {
return h.Has(tag.ApplVerID)
}
// HasCstmApplVerID returns true if CstmApplVerID is present, Tag 1129.
func (h Header) HasCstmApplVerID() bool {
return h.Has(tag.CstmApplVerID)
}
// NoHops is a repeating group element, Tag 627.
type NoHops struct {
*quickfix.Group
}
// SetHopCompID sets HopCompID, Tag 628.
func (h NoHops) SetHopCompID(v string) {
h.Set(field.NewHopCompID(v))
}
// SetHopSendingTime sets HopSendingTime, Tag 629.
func (h NoHops) SetHopSendingTime(v time.Time) {
h.Set(field.NewHopSendingTime(v))
}
// SetHopRefID sets HopRefID, Tag 630.
func (h NoHops) SetHopRefID(v int) {
h.Set(field.NewHopRefID(v))
}
// GetHopCompID gets HopCompID, Tag 628.
func (h NoHops) GetHopCompID() (v string, err quickfix.MessageRejectError) {
var f field.HopCompIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetHopSendingTime gets HopSendingTime, Tag 629.
func (h NoHops) GetHopSendingTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.HopSendingTimeField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetHopRefID gets HopRefID, Tag 630.
func (h NoHops) GetHopRefID() (v int, err quickfix.MessageRejectError) {
var f field.HopRefIDField
if err = h.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasHopCompID returns true if HopCompID is present, Tag 628.
func (h NoHops) HasHopCompID() bool {
return h.Has(tag.HopCompID)
}
// HasHopSendingTime returns true if HopSendingTime is present, Tag 629.
func (h NoHops) HasHopSendingTime() bool {
return h.Has(tag.HopSendingTime)
}
// HasHopRefID returns true if HopRefID is present, Tag 630.
func (h NoHops) HasHopRefID() bool {
return h.Has(tag.HopRefID)
}
// NoHopsRepeatingGroup is a repeating group, Tag 627.
type NoHopsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoHopsRepeatingGroup returns an initialized, NoHopsRepeatingGroup.
func NewNoHopsRepeatingGroup() NoHopsRepeatingGroup {
return NoHopsRepeatingGroup{
quickfix.NewRepeatingGroup(
tag.NoHops,
quickfix.GroupTemplate{
quickfix.GroupElement(tag.HopCompID),
quickfix.GroupElement(tag.HopSendingTime),
quickfix.GroupElement(tag.HopRefID),
},
),
}
}
// Add create and append a new NoHops to this group.
func (h NoHopsRepeatingGroup) Add() NoHops {
g := h.RepeatingGroup.Add()
return NoHops{g}
}
// Get returns the ith NoHops in the NoHopsRepeatinGroup.
func (h NoHopsRepeatingGroup) Get(i int) NoHops {
return NoHops{h.RepeatingGroup.Get(i)}
}

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/fixt11"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Heartbeat is the fixt11 Heartbeat type, MsgType = 0.
type Heartbeat struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a Heartbeat from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Heartbeat {
return Heartbeat{
Header: fixt11.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fixt11.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 = fixt11.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 "FIXT.1.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,397 @@
// 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/fixt11"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Logon is the fixt11 Logon type, MsgType = A.
type Logon struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a Logon from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Logon {
return Logon{
Header: fixt11.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fixt11.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, defaultapplverid field.DefaultApplVerIDField) (m Logon) {
m.Message = quickfix.NewMessage()
m.Header = fixt11.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)
m.Set(defaultapplverid)
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 "FIXT.1.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))
}
// SetMaxMessageSize sets MaxMessageSize, Tag 383.
func (m Logon) SetMaxMessageSize(v int) {
m.Set(field.NewMaxMessageSize(v))
}
// SetNoMsgTypes sets NoMsgTypes, Tag 384.
func (m Logon) SetNoMsgTypes(f NoMsgTypesRepeatingGroup) {
m.SetGroup(f)
}
// SetTestMessageIndicator sets TestMessageIndicator, Tag 464.
func (m Logon) SetTestMessageIndicator(v bool) {
m.Set(field.NewTestMessageIndicator(v))
}
// SetUsername sets Username, Tag 553.
func (m Logon) SetUsername(v string) {
m.Set(field.NewUsername(v))
}
// SetPassword sets Password, Tag 554.
func (m Logon) SetPassword(v string) {
m.Set(field.NewPassword(v))
}
// SetNextExpectedMsgSeqNum sets NextExpectedMsgSeqNum, Tag 789.
func (m Logon) SetNextExpectedMsgSeqNum(v int) {
m.Set(field.NewNextExpectedMsgSeqNum(v))
}
// SetDefaultApplVerID sets DefaultApplVerID, Tag 1137.
func (m Logon) SetDefaultApplVerID(v string) {
m.Set(field.NewDefaultApplVerID(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
}
// GetMaxMessageSize gets MaxMessageSize, Tag 383.
func (m Logon) GetMaxMessageSize() (v int, err quickfix.MessageRejectError) {
var f field.MaxMessageSizeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoMsgTypes gets NoMsgTypes, Tag 384.
func (m Logon) GetNoMsgTypes() (NoMsgTypesRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoMsgTypesRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// GetTestMessageIndicator gets TestMessageIndicator, Tag 464.
func (m Logon) GetTestMessageIndicator() (v bool, err quickfix.MessageRejectError) {
var f field.TestMessageIndicatorField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetUsername gets Username, Tag 553.
func (m Logon) GetUsername() (v string, err quickfix.MessageRejectError) {
var f field.UsernameField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetPassword gets Password, Tag 554.
func (m Logon) GetPassword() (v string, err quickfix.MessageRejectError) {
var f field.PasswordField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNextExpectedMsgSeqNum gets NextExpectedMsgSeqNum, Tag 789.
func (m Logon) GetNextExpectedMsgSeqNum() (v int, err quickfix.MessageRejectError) {
var f field.NextExpectedMsgSeqNumField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetDefaultApplVerID gets DefaultApplVerID, Tag 1137.
func (m Logon) GetDefaultApplVerID() (v string, err quickfix.MessageRejectError) {
var f field.DefaultApplVerIDField
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)
}
// HasMaxMessageSize returns true if MaxMessageSize is present, Tag 383.
func (m Logon) HasMaxMessageSize() bool {
return m.Has(tag.MaxMessageSize)
}
// HasNoMsgTypes returns true if NoMsgTypes is present, Tag 384.
func (m Logon) HasNoMsgTypes() bool {
return m.Has(tag.NoMsgTypes)
}
// HasTestMessageIndicator returns true if TestMessageIndicator is present, Tag 464.
func (m Logon) HasTestMessageIndicator() bool {
return m.Has(tag.TestMessageIndicator)
}
// HasUsername returns true if Username is present, Tag 553.
func (m Logon) HasUsername() bool {
return m.Has(tag.Username)
}
// HasPassword returns true if Password is present, Tag 554.
func (m Logon) HasPassword() bool {
return m.Has(tag.Password)
}
// HasNextExpectedMsgSeqNum returns true if NextExpectedMsgSeqNum is present, Tag 789.
func (m Logon) HasNextExpectedMsgSeqNum() bool {
return m.Has(tag.NextExpectedMsgSeqNum)
}
// HasDefaultApplVerID returns true if DefaultApplVerID is present, Tag 1137.
func (m Logon) HasDefaultApplVerID() bool {
return m.Has(tag.DefaultApplVerID)
}
// NoMsgTypes is a repeating group element, Tag 384.
type NoMsgTypes struct {
*quickfix.Group
}
// SetRefMsgType sets RefMsgType, Tag 372.
func (m NoMsgTypes) SetRefMsgType(v string) {
m.Set(field.NewRefMsgType(v))
}
// SetMsgDirection sets MsgDirection, Tag 385.
func (m NoMsgTypes) SetMsgDirection(v enum.MsgDirection) {
m.Set(field.NewMsgDirection(v))
}
// SetRefApplVerID sets RefApplVerID, Tag 1130.
func (m NoMsgTypes) SetRefApplVerID(v string) {
m.Set(field.NewRefApplVerID(v))
}
// SetRefCstmApplVerID sets RefCstmApplVerID, Tag 1131.
func (m NoMsgTypes) SetRefCstmApplVerID(v string) {
m.Set(field.NewRefCstmApplVerID(v))
}
// GetRefMsgType gets RefMsgType, Tag 372.
func (m NoMsgTypes) GetRefMsgType() (v string, err quickfix.MessageRejectError) {
var f field.RefMsgTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetMsgDirection gets MsgDirection, Tag 385.
func (m NoMsgTypes) GetMsgDirection() (v enum.MsgDirection, err quickfix.MessageRejectError) {
var f field.MsgDirectionField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetRefApplVerID gets RefApplVerID, Tag 1130.
func (m NoMsgTypes) GetRefApplVerID() (v string, err quickfix.MessageRejectError) {
var f field.RefApplVerIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetRefCstmApplVerID gets RefCstmApplVerID, Tag 1131.
func (m NoMsgTypes) GetRefCstmApplVerID() (v string, err quickfix.MessageRejectError) {
var f field.RefCstmApplVerIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasRefMsgType returns true if RefMsgType is present, Tag 372.
func (m NoMsgTypes) HasRefMsgType() bool {
return m.Has(tag.RefMsgType)
}
// HasMsgDirection returns true if MsgDirection is present, Tag 385.
func (m NoMsgTypes) HasMsgDirection() bool {
return m.Has(tag.MsgDirection)
}
// HasRefApplVerID returns true if RefApplVerID is present, Tag 1130.
func (m NoMsgTypes) HasRefApplVerID() bool {
return m.Has(tag.RefApplVerID)
}
// HasRefCstmApplVerID returns true if RefCstmApplVerID is present, Tag 1131.
func (m NoMsgTypes) HasRefCstmApplVerID() bool {
return m.Has(tag.RefCstmApplVerID)
}
// NoMsgTypesRepeatingGroup is a repeating group, Tag 384.
type NoMsgTypesRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoMsgTypesRepeatingGroup returns an initialized, NoMsgTypesRepeatingGroup.
func NewNoMsgTypesRepeatingGroup() NoMsgTypesRepeatingGroup {
return NoMsgTypesRepeatingGroup{
quickfix.NewRepeatingGroup(
tag.NoMsgTypes,
quickfix.GroupTemplate{
quickfix.GroupElement(tag.RefMsgType),
quickfix.GroupElement(tag.MsgDirection),
quickfix.GroupElement(tag.RefApplVerID),
quickfix.GroupElement(tag.RefCstmApplVerID),
},
),
}
}
// Add create and append a new NoMsgTypes to this group.
func (m NoMsgTypesRepeatingGroup) Add() NoMsgTypes {
g := m.RepeatingGroup.Add()
return NoMsgTypes{g}
}
// Get returns the ith NoMsgTypes in the NoMsgTypesRepeatinGroup.
func (m NoMsgTypesRepeatingGroup) Get(i int) NoMsgTypes {
return NoMsgTypes{m.RepeatingGroup.Get(i)}
}

View File

@ -0,0 +1,112 @@
// Code generated by quickfix. DO NOT EDIT.
package logout
import (
"quantex.com/qfixdpl/quickfix"
"quantex.com/qfixdpl/quickfix/gen/field"
"quantex.com/qfixdpl/quickfix/gen/fixt11"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Logout is the fixt11 Logout type, MsgType = 5.
type Logout struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a Logout from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Logout {
return Logout{
Header: fixt11.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fixt11.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 = fixt11.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 "FIXT.1.1", "5", r
}
// SetText sets Text, Tag 58.
func (m Logout) SetText(v string) {
m.Set(field.NewText(v))
}
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
func (m Logout) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
// SetEncodedText sets EncodedText, Tag 355.
func (m Logout) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
// GetText gets Text, Tag 58.
func (m Logout) GetText() (v string, err quickfix.MessageRejectError) {
var f field.TextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
func (m Logout) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedTextLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedText gets EncodedText, Tag 355.
func (m Logout) GetEncodedText() (v string, err quickfix.MessageRejectError) {
var f field.EncodedTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasText returns true if Text is present, Tag 58.
func (m Logout) HasText() bool {
return m.Has(tag.Text)
}
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
func (m Logout) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
// HasEncodedText returns true if EncodedText is present, Tag 355.
func (m Logout) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}

View File

@ -0,0 +1,190 @@
// Code generated by quickfix. DO NOT EDIT.
package reject
import (
"quantex.com/qfixdpl/quickfix"
"quantex.com/qfixdpl/quickfix/gen/enum"
"quantex.com/qfixdpl/quickfix/gen/field"
"quantex.com/qfixdpl/quickfix/gen/fixt11"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// Reject is the fixt11 Reject type, MsgType = 3.
type Reject struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a Reject from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) Reject {
return Reject{
Header: fixt11.Header{Header: &m.Header},
Body: &m.Body,
Trailer: fixt11.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 = fixt11.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 "FIXT.1.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))
}
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
func (m Reject) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
// SetEncodedText sets EncodedText, Tag 355.
func (m Reject) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
// SetRefTagID sets RefTagID, Tag 371.
func (m Reject) SetRefTagID(v int) {
m.Set(field.NewRefTagID(v))
}
// SetRefMsgType sets RefMsgType, Tag 372.
func (m Reject) SetRefMsgType(v string) {
m.Set(field.NewRefMsgType(v))
}
// SetSessionRejectReason sets SessionRejectReason, Tag 373.
func (m Reject) SetSessionRejectReason(v enum.SessionRejectReason) {
m.Set(field.NewSessionRejectReason(v))
}
// GetRefSeqNum gets RefSeqNum, Tag 45.
func (m Reject) GetRefSeqNum() (v int, err quickfix.MessageRejectError) {
var f field.RefSeqNumField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetText gets Text, Tag 58.
func (m Reject) GetText() (v string, err quickfix.MessageRejectError) {
var f field.TextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
func (m Reject) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedTextLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedText gets EncodedText, Tag 355.
func (m Reject) GetEncodedText() (v string, err quickfix.MessageRejectError) {
var f field.EncodedTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetRefTagID gets RefTagID, Tag 371.
func (m Reject) GetRefTagID() (v int, err quickfix.MessageRejectError) {
var f field.RefTagIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetRefMsgType gets RefMsgType, Tag 372.
func (m Reject) GetRefMsgType() (v string, err quickfix.MessageRejectError) {
var f field.RefMsgTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSessionRejectReason gets SessionRejectReason, Tag 373.
func (m Reject) GetSessionRejectReason() (v enum.SessionRejectReason, err quickfix.MessageRejectError) {
var f field.SessionRejectReasonField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasRefSeqNum returns true if RefSeqNum is present, Tag 45.
func (m Reject) HasRefSeqNum() bool {
return m.Has(tag.RefSeqNum)
}
// HasText returns true if Text is present, Tag 58.
func (m Reject) HasText() bool {
return m.Has(tag.Text)
}
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
func (m Reject) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
// HasEncodedText returns true if EncodedText is present, Tag 355.
func (m Reject) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}
// HasRefTagID returns true if RefTagID is present, Tag 371.
func (m Reject) HasRefTagID() bool {
return m.Has(tag.RefTagID)
}
// HasRefMsgType returns true if RefMsgType is present, Tag 372.
func (m Reject) HasRefMsgType() bool {
return m.Has(tag.RefMsgType)
}
// HasSessionRejectReason returns true if SessionRejectReason is present, Tag 373.
func (m Reject) HasSessionRejectReason() bool {
return m.Has(tag.SessionRejectReason)
}

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