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,191 @@
// Code generated by quickfix. DO NOT EDIT.
package businessmessagereject
import (
"quantex.com/qfixdpl/quickfix"
"quantex.com/qfixdpl/quickfix/gen/enum"
"quantex.com/qfixdpl/quickfix/gen/field"
"quantex.com/qfixdpl/quickfix/gen/fixt11"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// BusinessMessageReject is the fix50sp2 BusinessMessageReject type, MsgType = j.
type BusinessMessageReject struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a BusinessMessageReject from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) BusinessMessageReject {
return BusinessMessageReject{
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 BusinessMessageReject) ToMessage() *quickfix.Message {
return m.Message
}
// New returns a BusinessMessageReject initialized with the required fields for BusinessMessageReject.
func New(refmsgtype field.RefMsgTypeField, businessrejectreason field.BusinessRejectReasonField) (m BusinessMessageReject) {
m.Message = quickfix.NewMessage()
m.Header = fixt11.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("j"))
m.Set(refmsgtype)
m.Set(businessrejectreason)
return
}
// A RouteOut is the callback type that should be implemented for routing Message.
type RouteOut func(msg BusinessMessageReject, sessionID quickfix.SessionID) quickfix.MessageRejectError
// Route returns the beginstring, message type, and MessageRoute for this Message type.
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
return router(FromMessage(msg), sessionID)
}
return "9", "j", r
}
// SetRefSeqNum sets RefSeqNum, Tag 45.
func (m BusinessMessageReject) SetRefSeqNum(v int) {
m.Set(field.NewRefSeqNum(v))
}
// SetText sets Text, Tag 58.
func (m BusinessMessageReject) SetText(v string) {
m.Set(field.NewText(v))
}
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
func (m BusinessMessageReject) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
// SetEncodedText sets EncodedText, Tag 355.
func (m BusinessMessageReject) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
// SetRefMsgType sets RefMsgType, Tag 372.
func (m BusinessMessageReject) SetRefMsgType(v string) {
m.Set(field.NewRefMsgType(v))
}
// SetBusinessRejectRefID sets BusinessRejectRefID, Tag 379.
func (m BusinessMessageReject) SetBusinessRejectRefID(v string) {
m.Set(field.NewBusinessRejectRefID(v))
}
// SetBusinessRejectReason sets BusinessRejectReason, Tag 380.
func (m BusinessMessageReject) SetBusinessRejectReason(v enum.BusinessRejectReason) {
m.Set(field.NewBusinessRejectReason(v))
}
// GetRefSeqNum gets RefSeqNum, Tag 45.
func (m BusinessMessageReject) GetRefSeqNum() (v int, err quickfix.MessageRejectError) {
var f field.RefSeqNumField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetText gets Text, Tag 58.
func (m BusinessMessageReject) GetText() (v string, err quickfix.MessageRejectError) {
var f field.TextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
func (m BusinessMessageReject) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedTextLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedText gets EncodedText, Tag 355.
func (m BusinessMessageReject) GetEncodedText() (v string, err quickfix.MessageRejectError) {
var f field.EncodedTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetRefMsgType gets RefMsgType, Tag 372.
func (m BusinessMessageReject) GetRefMsgType() (v string, err quickfix.MessageRejectError) {
var f field.RefMsgTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetBusinessRejectRefID gets BusinessRejectRefID, Tag 379.
func (m BusinessMessageReject) GetBusinessRejectRefID() (v string, err quickfix.MessageRejectError) {
var f field.BusinessRejectRefIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetBusinessRejectReason gets BusinessRejectReason, Tag 380.
func (m BusinessMessageReject) GetBusinessRejectReason() (v enum.BusinessRejectReason, err quickfix.MessageRejectError) {
var f field.BusinessRejectReasonField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasRefSeqNum returns true if RefSeqNum is present, Tag 45.
func (m BusinessMessageReject) HasRefSeqNum() bool {
return m.Has(tag.RefSeqNum)
}
// HasText returns true if Text is present, Tag 58.
func (m BusinessMessageReject) HasText() bool {
return m.Has(tag.Text)
}
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
func (m BusinessMessageReject) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
// HasEncodedText returns true if EncodedText is present, Tag 355.
func (m BusinessMessageReject) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}
// HasRefMsgType returns true if RefMsgType is present, Tag 372.
func (m BusinessMessageReject) HasRefMsgType() bool {
return m.Has(tag.RefMsgType)
}
// HasBusinessRejectRefID returns true if BusinessRejectRefID is present, Tag 379.
func (m BusinessMessageReject) HasBusinessRejectRefID() bool {
return m.Has(tag.BusinessRejectRefID)
}
// HasBusinessRejectReason returns true if BusinessRejectReason is present, Tag 380.
func (m BusinessMessageReject) HasBusinessRejectReason() bool {
return m.Has(tag.BusinessRejectReason)
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,329 @@
// Code generated by quickfix. DO NOT EDIT.
package executionack
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/fixt11"
"quantex.com/qfixdpl/quickfix/gen/tag"
)
// ExecutionAck is the fix50sp2 ExecutionAck type, MsgType = BN.
type ExecutionAck struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a ExecutionAck from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) ExecutionAck {
return ExecutionAck{
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 ExecutionAck) ToMessage() *quickfix.Message {
return m.Message
}
// New returns a ExecutionAck initialized with the required fields for ExecutionAck.
func New(orderid field.OrderIDField, execid field.ExecIDField, execackstatus field.ExecAckStatusField) (m ExecutionAck) {
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("BN"))
m.Set(orderid)
m.Set(execid)
m.Set(execackstatus)
return
}
// A RouteOut is the callback type that should be implemented for routing Message.
type RouteOut func(msg ExecutionAck, 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 "9", "BN", r
}
// SetAvgPx sets AvgPx, Tag 6.
func (m ExecutionAck) SetAvgPx(value decimal.Decimal, scale int32) {
m.Set(field.NewAvgPx(value, scale))
}
// SetClOrdID sets ClOrdID, Tag 11.
func (m ExecutionAck) SetClOrdID(v string) {
m.Set(field.NewClOrdID(v))
}
// SetCumQty sets CumQty, Tag 14.
func (m ExecutionAck) SetCumQty(value decimal.Decimal, scale int32) {
m.Set(field.NewCumQty(value, scale))
}
// SetExecID sets ExecID, Tag 17.
func (m ExecutionAck) SetExecID(v string) {
m.Set(field.NewExecID(v))
}
// SetOrderID sets OrderID, Tag 37.
func (m ExecutionAck) SetOrderID(v string) {
m.Set(field.NewOrderID(v))
}
// SetSymbol sets Symbol, Tag 55.
func (m ExecutionAck) SetSymbol(v string) {
m.Set(field.NewSymbol(v))
}
// SetText sets Text, Tag 58.
func (m ExecutionAck) SetText(v string) {
m.Set(field.NewText(v))
}
// SetTransactTime sets TransactTime, Tag 60.
func (m ExecutionAck) SetTransactTime(v time.Time) {
m.Set(field.NewTransactTime(v))
}
// SetDKReason sets DKReason, Tag 127.
func (m ExecutionAck) SetDKReason(v enum.DKReason) {
m.Set(field.NewDKReason(v))
}
// SetLeavesQty sets LeavesQty, Tag 151.
func (m ExecutionAck) SetLeavesQty(value decimal.Decimal, scale int32) {
m.Set(field.NewLeavesQty(value, scale))
}
// SetExecAckStatus sets ExecAckStatus, Tag 1036.
func (m ExecutionAck) SetExecAckStatus(v enum.ExecAckStatus) {
m.Set(field.NewExecAckStatus(v))
}
// SetOwnerTraderID sets OwnerTraderID, Tag 6153.
func (m ExecutionAck) SetOwnerTraderID(v string) {
m.Set(field.NewOwnerTraderID(v))
}
// SetCoverPrice sets CoverPrice, Tag 20111.
func (m ExecutionAck) SetCoverPrice(value decimal.Decimal, scale int32) {
m.Set(field.NewCoverPrice(value, scale))
}
// SetImpliedCoverProceeds sets ImpliedCoverProceeds, Tag 23671.
func (m ExecutionAck) SetImpliedCoverProceeds(value decimal.Decimal, scale int32) {
m.Set(field.NewImpliedCoverProceeds(value, scale))
}
// GetAvgPx gets AvgPx, Tag 6.
func (m ExecutionAck) GetAvgPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.AvgPxField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetClOrdID gets ClOrdID, Tag 11.
func (m ExecutionAck) 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 ExecutionAck) GetCumQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.CumQtyField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetExecID gets ExecID, Tag 17.
func (m ExecutionAck) GetExecID() (v string, err quickfix.MessageRejectError) {
var f field.ExecIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOrderID gets OrderID, Tag 37.
func (m ExecutionAck) GetOrderID() (v string, err quickfix.MessageRejectError) {
var f field.OrderIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSymbol gets Symbol, Tag 55.
func (m ExecutionAck) 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 ExecutionAck) 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 ExecutionAck) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.TransactTimeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetDKReason gets DKReason, Tag 127.
func (m ExecutionAck) GetDKReason() (v enum.DKReason, err quickfix.MessageRejectError) {
var f field.DKReasonField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetLeavesQty gets LeavesQty, Tag 151.
func (m ExecutionAck) GetLeavesQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.LeavesQtyField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetExecAckStatus gets ExecAckStatus, Tag 1036.
func (m ExecutionAck) GetExecAckStatus() (v enum.ExecAckStatus, err quickfix.MessageRejectError) {
var f field.ExecAckStatusField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOwnerTraderID gets OwnerTraderID, Tag 6153.
func (m ExecutionAck) GetOwnerTraderID() (v string, err quickfix.MessageRejectError) {
var f field.OwnerTraderIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetCoverPrice gets CoverPrice, Tag 20111.
func (m ExecutionAck) GetCoverPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.CoverPriceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetImpliedCoverProceeds gets ImpliedCoverProceeds, Tag 23671.
func (m ExecutionAck) GetImpliedCoverProceeds() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.ImpliedCoverProceedsField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasAvgPx returns true if AvgPx is present, Tag 6.
func (m ExecutionAck) HasAvgPx() bool {
return m.Has(tag.AvgPx)
}
// HasClOrdID returns true if ClOrdID is present, Tag 11.
func (m ExecutionAck) HasClOrdID() bool {
return m.Has(tag.ClOrdID)
}
// HasCumQty returns true if CumQty is present, Tag 14.
func (m ExecutionAck) HasCumQty() bool {
return m.Has(tag.CumQty)
}
// HasExecID returns true if ExecID is present, Tag 17.
func (m ExecutionAck) HasExecID() bool {
return m.Has(tag.ExecID)
}
// HasOrderID returns true if OrderID is present, Tag 37.
func (m ExecutionAck) HasOrderID() bool {
return m.Has(tag.OrderID)
}
// HasSymbol returns true if Symbol is present, Tag 55.
func (m ExecutionAck) HasSymbol() bool {
return m.Has(tag.Symbol)
}
// HasText returns true if Text is present, Tag 58.
func (m ExecutionAck) HasText() bool {
return m.Has(tag.Text)
}
// HasTransactTime returns true if TransactTime is present, Tag 60.
func (m ExecutionAck) HasTransactTime() bool {
return m.Has(tag.TransactTime)
}
// HasDKReason returns true if DKReason is present, Tag 127.
func (m ExecutionAck) HasDKReason() bool {
return m.Has(tag.DKReason)
}
// HasLeavesQty returns true if LeavesQty is present, Tag 151.
func (m ExecutionAck) HasLeavesQty() bool {
return m.Has(tag.LeavesQty)
}
// HasExecAckStatus returns true if ExecAckStatus is present, Tag 1036.
func (m ExecutionAck) HasExecAckStatus() bool {
return m.Has(tag.ExecAckStatus)
}
// HasOwnerTraderID returns true if OwnerTraderID is present, Tag 6153.
func (m ExecutionAck) HasOwnerTraderID() bool {
return m.Has(tag.OwnerTraderID)
}
// HasCoverPrice returns true if CoverPrice is present, Tag 20111.
func (m ExecutionAck) HasCoverPrice() bool {
return m.Has(tag.CoverPrice)
}
// HasImpliedCoverProceeds returns true if ImpliedCoverProceeds is present, Tag 23671.
func (m ExecutionAck) HasImpliedCoverProceeds() bool {
return m.Has(tag.ImpliedCoverProceeds)
}

File diff suppressed because it is too large Load Diff

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 fix50sp2 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 "9", "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,357 @@
// 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 fix50sp2 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 "9", "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))
}
// GetRefMsgType gets RefMsgType, Tag 372.
func (m NoMsgTypes) GetRefMsgType() (v string, err quickfix.MessageRejectError) {
var f field.RefMsgTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetMsgDirection gets MsgDirection, Tag 385.
func (m NoMsgTypes) GetMsgDirection() (v enum.MsgDirection, err quickfix.MessageRejectError) {
var f field.MsgDirectionField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasRefMsgType returns true if RefMsgType is present, Tag 372.
func (m NoMsgTypes) HasRefMsgType() bool {
return m.Has(tag.RefMsgType)
}
// HasMsgDirection returns true if MsgDirection is present, Tag 385.
func (m NoMsgTypes) HasMsgDirection() bool {
return m.Has(tag.MsgDirection)
}
// NoMsgTypesRepeatingGroup is a repeating group, Tag 384.
type NoMsgTypesRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoMsgTypesRepeatingGroup returns an initialized, NoMsgTypesRepeatingGroup.
func NewNoMsgTypesRepeatingGroup() NoMsgTypesRepeatingGroup {
return NoMsgTypesRepeatingGroup{
quickfix.NewRepeatingGroup(
tag.NoMsgTypes,
quickfix.GroupTemplate{
quickfix.GroupElement(tag.RefMsgType),
quickfix.GroupElement(tag.MsgDirection),
},
),
}
}
// Add create and append a new NoMsgTypes to this group.
func (m NoMsgTypesRepeatingGroup) Add() NoMsgTypes {
g := m.RepeatingGroup.Add()
return NoMsgTypes{g}
}
// Get returns the ith NoMsgTypes in the NoMsgTypesRepeatinGroup.
func (m NoMsgTypesRepeatingGroup) Get(i int) NoMsgTypes {
return NoMsgTypes{m.RepeatingGroup.Get(i)}
}

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 fix50sp2 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 "9", "5", r
}
// SetText sets Text, Tag 58.
func (m Logout) SetText(v string) {
m.Set(field.NewText(v))
}
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
func (m Logout) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
// SetEncodedText sets EncodedText, Tag 355.
func (m Logout) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
// GetText gets Text, Tag 58.
func (m Logout) GetText() (v string, err quickfix.MessageRejectError) {
var f field.TextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
func (m Logout) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedTextLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedText gets EncodedText, Tag 355.
func (m Logout) GetEncodedText() (v string, err quickfix.MessageRejectError) {
var f field.EncodedTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasText returns true if Text is present, Tag 58.
func (m Logout) HasText() bool {
return m.Has(tag.Text)
}
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
func (m Logout) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
// HasEncodedText returns true if EncodedText is present, Tag 355.
func (m Logout) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,341 @@
// Code generated by quickfix. DO NOT EDIT.
package quoteack
import (
"time"
"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"
)
// QuoteAck is the fix50sp2 QuoteAck type, MsgType = CW.
type QuoteAck struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a QuoteAck from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) QuoteAck {
return QuoteAck{
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 QuoteAck) ToMessage() *quickfix.Message {
return m.Message
}
// New returns a QuoteAck initialized with the required fields for QuoteAck.
func New(quotereqid field.QuoteReqIDField, transacttime field.TransactTimeField, quoteackstatus field.QuoteAckStatusField) (m QuoteAck) {
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("CW"))
m.Set(quotereqid)
m.Set(transacttime)
m.Set(quoteackstatus)
return
}
// A RouteOut is the callback type that should be implemented for routing Message.
type RouteOut func(msg QuoteAck, 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 "9", "CW", r
}
// SetText sets Text, Tag 58.
func (m QuoteAck) SetText(v string) {
m.Set(field.NewText(v))
}
// SetTransactTime sets TransactTime, Tag 60.
func (m QuoteAck) SetTransactTime(v time.Time) {
m.Set(field.NewTransactTime(v))
}
// SetQuoteID sets QuoteID, Tag 117.
func (m QuoteAck) SetQuoteID(v string) {
m.Set(field.NewQuoteID(v))
}
// SetQuoteReqID sets QuoteReqID, Tag 131.
func (m QuoteAck) SetQuoteReqID(v string) {
m.Set(field.NewQuoteReqID(v))
}
// SetQuoteCancelType sets QuoteCancelType, Tag 298.
func (m QuoteAck) SetQuoteCancelType(v enum.QuoteCancelType) {
m.Set(field.NewQuoteCancelType(v))
}
// SetNoLegs sets NoLegs, Tag 555.
func (m QuoteAck) SetNoLegs(f NoLegsRepeatingGroup) {
m.SetGroup(f)
}
// SetLastFragment sets LastFragment, Tag 893.
func (m QuoteAck) SetLastFragment(v bool) {
m.Set(field.NewLastFragment(v))
}
// SetQuoteAckStatus sets QuoteAckStatus, Tag 1865.
func (m QuoteAck) SetQuoteAckStatus(v enum.QuoteAckStatus) {
m.Set(field.NewQuoteAckStatus(v))
}
// SetTotNoOfMessages sets TotNoOfMessages, Tag 20394.
func (m QuoteAck) SetTotNoOfMessages(v int) {
m.Set(field.NewTotNoOfMessages(v))
}
// SetMessageNo sets MessageNo, Tag 20395.
func (m QuoteAck) SetMessageNo(v int) {
m.Set(field.NewMessageNo(v))
}
// GetText gets Text, Tag 58.
func (m QuoteAck) 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 QuoteAck) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.TransactTimeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetQuoteID gets QuoteID, Tag 117.
func (m QuoteAck) 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 QuoteAck) GetQuoteReqID() (v string, err quickfix.MessageRejectError) {
var f field.QuoteReqIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetQuoteCancelType gets QuoteCancelType, Tag 298.
func (m QuoteAck) GetQuoteCancelType() (v enum.QuoteCancelType, err quickfix.MessageRejectError) {
var f field.QuoteCancelTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoLegs gets NoLegs, Tag 555.
func (m QuoteAck) GetNoLegs() (NoLegsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoLegsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// GetLastFragment gets LastFragment, Tag 893.
func (m QuoteAck) GetLastFragment() (v bool, err quickfix.MessageRejectError) {
var f field.LastFragmentField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetQuoteAckStatus gets QuoteAckStatus, Tag 1865.
func (m QuoteAck) GetQuoteAckStatus() (v enum.QuoteAckStatus, err quickfix.MessageRejectError) {
var f field.QuoteAckStatusField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetTotNoOfMessages gets TotNoOfMessages, Tag 20394.
func (m QuoteAck) GetTotNoOfMessages() (v int, err quickfix.MessageRejectError) {
var f field.TotNoOfMessagesField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetMessageNo gets MessageNo, Tag 20395.
func (m QuoteAck) GetMessageNo() (v int, err quickfix.MessageRejectError) {
var f field.MessageNoField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasText returns true if Text is present, Tag 58.
func (m QuoteAck) HasText() bool {
return m.Has(tag.Text)
}
// HasTransactTime returns true if TransactTime is present, Tag 60.
func (m QuoteAck) HasTransactTime() bool {
return m.Has(tag.TransactTime)
}
// HasQuoteID returns true if QuoteID is present, Tag 117.
func (m QuoteAck) HasQuoteID() bool {
return m.Has(tag.QuoteID)
}
// HasQuoteReqID returns true if QuoteReqID is present, Tag 131.
func (m QuoteAck) HasQuoteReqID() bool {
return m.Has(tag.QuoteReqID)
}
// HasQuoteCancelType returns true if QuoteCancelType is present, Tag 298.
func (m QuoteAck) HasQuoteCancelType() bool {
return m.Has(tag.QuoteCancelType)
}
// HasNoLegs returns true if NoLegs is present, Tag 555.
func (m QuoteAck) HasNoLegs() bool {
return m.Has(tag.NoLegs)
}
// HasLastFragment returns true if LastFragment is present, Tag 893.
func (m QuoteAck) HasLastFragment() bool {
return m.Has(tag.LastFragment)
}
// HasQuoteAckStatus returns true if QuoteAckStatus is present, Tag 1865.
func (m QuoteAck) HasQuoteAckStatus() bool {
return m.Has(tag.QuoteAckStatus)
}
// HasTotNoOfMessages returns true if TotNoOfMessages is present, Tag 20394.
func (m QuoteAck) HasTotNoOfMessages() bool {
return m.Has(tag.TotNoOfMessages)
}
// HasMessageNo returns true if MessageNo is present, Tag 20395.
func (m QuoteAck) HasMessageNo() bool {
return m.Has(tag.MessageNo)
}
// NoLegs is a repeating group element, Tag 555.
type NoLegs struct {
*quickfix.Group
}
// SetTradeLegRefID sets TradeLegRefID, Tag 824.
func (m NoLegs) SetTradeLegRefID(v string) {
m.Set(field.NewTradeLegRefID(v))
}
// SetLegQuoteAckStatus sets LegQuoteAckStatus, Tag 21053.
func (m NoLegs) SetLegQuoteAckStatus(v enum.LegQuoteAckStatus) {
m.Set(field.NewLegQuoteAckStatus(v))
}
// SetLegText sets LegText, Tag 21054.
func (m NoLegs) SetLegText(v string) {
m.Set(field.NewLegText(v))
}
// GetTradeLegRefID gets TradeLegRefID, Tag 824.
func (m NoLegs) GetTradeLegRefID() (v string, err quickfix.MessageRejectError) {
var f field.TradeLegRefIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetLegQuoteAckStatus gets LegQuoteAckStatus, Tag 21053.
func (m NoLegs) GetLegQuoteAckStatus() (v enum.LegQuoteAckStatus, err quickfix.MessageRejectError) {
var f field.LegQuoteAckStatusField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetLegText gets LegText, Tag 21054.
func (m NoLegs) GetLegText() (v string, err quickfix.MessageRejectError) {
var f field.LegTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasTradeLegRefID returns true if TradeLegRefID is present, Tag 824.
func (m NoLegs) HasTradeLegRefID() bool {
return m.Has(tag.TradeLegRefID)
}
// HasLegQuoteAckStatus returns true if LegQuoteAckStatus is present, Tag 21053.
func (m NoLegs) HasLegQuoteAckStatus() bool {
return m.Has(tag.LegQuoteAckStatus)
}
// HasLegText returns true if LegText is present, Tag 21054.
func (m NoLegs) HasLegText() bool {
return m.Has(tag.LegText)
}
// NoLegsRepeatingGroup is a repeating group, Tag 555.
type NoLegsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoLegsRepeatingGroup returns an initialized, NoLegsRepeatingGroup.
func NewNoLegsRepeatingGroup() NoLegsRepeatingGroup {
return NoLegsRepeatingGroup{
quickfix.NewRepeatingGroup(
tag.NoLegs,
quickfix.GroupTemplate{
quickfix.GroupElement(tag.TradeLegRefID),
quickfix.GroupElement(tag.LegQuoteAckStatus),
quickfix.GroupElement(tag.LegText),
},
),
}
}
// Add create and append a new NoLegs to this group.
func (m NoLegsRepeatingGroup) Add() NoLegs {
g := m.RepeatingGroup.Add()
return NoLegs{g}
}
// Get returns the ith NoLegs in the NoLegsRepeatinGroup.
func (m NoLegsRepeatingGroup) Get(i int) NoLegs {
return NoLegs{m.RepeatingGroup.Get(i)}
}

View File

@ -0,0 +1,507 @@
// Code generated by quickfix. DO NOT EDIT.
package quotecancel
import (
"time"
"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"
)
// QuoteCancel is the fix50sp2 QuoteCancel type, MsgType = Z.
type QuoteCancel struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a QuoteCancel from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) QuoteCancel {
return QuoteCancel{
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 QuoteCancel) ToMessage() *quickfix.Message {
return m.Message
}
// New returns a QuoteCancel initialized with the required fields for QuoteCancel.
func New(quotereqid field.QuoteReqIDField, quotecanceltype field.QuoteCancelTypeField) (m QuoteCancel) {
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("Z"))
m.Set(quotereqid)
m.Set(quotecanceltype)
return
}
// A RouteOut is the callback type that should be implemented for routing Message.
type RouteOut func(msg QuoteCancel, sessionID quickfix.SessionID) quickfix.MessageRejectError
// Route returns the beginstring, message type, and MessageRoute for this Message type.
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
return router(FromMessage(msg), sessionID)
}
return "9", "Z", r
}
// SetAccount sets Account, Tag 1.
func (m QuoteCancel) SetAccount(v string) {
m.Set(field.NewAccount(v))
}
// SetText sets Text, Tag 58.
func (m QuoteCancel) SetText(v string) {
m.Set(field.NewText(v))
}
// SetTransactTime sets TransactTime, Tag 60.
func (m QuoteCancel) SetTransactTime(v time.Time) {
m.Set(field.NewTransactTime(v))
}
// SetQuoteID sets QuoteID, Tag 117.
func (m QuoteCancel) SetQuoteID(v string) {
m.Set(field.NewQuoteID(v))
}
// SetQuoteReqID sets QuoteReqID, Tag 131.
func (m QuoteCancel) SetQuoteReqID(v string) {
m.Set(field.NewQuoteReqID(v))
}
// SetQuoteCancelType sets QuoteCancelType, Tag 298.
func (m QuoteCancel) SetQuoteCancelType(v enum.QuoteCancelType) {
m.Set(field.NewQuoteCancelType(v))
}
// SetQuoteResponseLevel sets QuoteResponseLevel, Tag 301.
func (m QuoteCancel) SetQuoteResponseLevel(v enum.QuoteResponseLevel) {
m.Set(field.NewQuoteResponseLevel(v))
}
// SetTradingSessionID sets TradingSessionID, Tag 336.
func (m QuoteCancel) SetTradingSessionID(v enum.TradingSessionID) {
m.Set(field.NewTradingSessionID(v))
}
// SetNoPartyIDs sets NoPartyIDs, Tag 453.
func (m QuoteCancel) SetNoPartyIDs(f NoPartyIDsRepeatingGroup) {
m.SetGroup(f)
}
// SetAccountType sets AccountType, Tag 581.
func (m QuoteCancel) SetAccountType(v enum.AccountType) {
m.Set(field.NewAccountType(v))
}
// SetTradingSessionSubID sets TradingSessionSubID, Tag 625.
func (m QuoteCancel) SetTradingSessionSubID(v enum.TradingSessionSubID) {
m.Set(field.NewTradingSessionSubID(v))
}
// SetAcctIDSource sets AcctIDSource, Tag 660.
func (m QuoteCancel) SetAcctIDSource(v enum.AcctIDSource) {
m.Set(field.NewAcctIDSource(v))
}
// SetOwnerTraderID sets OwnerTraderID, Tag 6153.
func (m QuoteCancel) SetOwnerTraderID(v string) {
m.Set(field.NewOwnerTraderID(v))
}
// GetAccount gets Account, Tag 1.
func (m QuoteCancel) GetAccount() (v string, err quickfix.MessageRejectError) {
var f field.AccountField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetText gets Text, Tag 58.
func (m QuoteCancel) 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 QuoteCancel) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.TransactTimeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetQuoteID gets QuoteID, Tag 117.
func (m QuoteCancel) GetQuoteID() (v string, err quickfix.MessageRejectError) {
var f field.QuoteIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetQuoteReqID gets QuoteReqID, Tag 131.
func (m QuoteCancel) GetQuoteReqID() (v string, err quickfix.MessageRejectError) {
var f field.QuoteReqIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetQuoteCancelType gets QuoteCancelType, Tag 298.
func (m QuoteCancel) GetQuoteCancelType() (v enum.QuoteCancelType, err quickfix.MessageRejectError) {
var f field.QuoteCancelTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetQuoteResponseLevel gets QuoteResponseLevel, Tag 301.
func (m QuoteCancel) GetQuoteResponseLevel() (v enum.QuoteResponseLevel, err quickfix.MessageRejectError) {
var f field.QuoteResponseLevelField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetTradingSessionID gets TradingSessionID, Tag 336.
func (m QuoteCancel) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
var f field.TradingSessionIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoPartyIDs gets NoPartyIDs, Tag 453.
func (m QuoteCancel) GetNoPartyIDs() (NoPartyIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoPartyIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// GetAccountType gets AccountType, Tag 581.
func (m QuoteCancel) GetAccountType() (v enum.AccountType, err quickfix.MessageRejectError) {
var f field.AccountTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetTradingSessionSubID gets TradingSessionSubID, Tag 625.
func (m QuoteCancel) GetTradingSessionSubID() (v enum.TradingSessionSubID, err quickfix.MessageRejectError) {
var f field.TradingSessionSubIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAcctIDSource gets AcctIDSource, Tag 660.
func (m QuoteCancel) GetAcctIDSource() (v enum.AcctIDSource, err quickfix.MessageRejectError) {
var f field.AcctIDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOwnerTraderID gets OwnerTraderID, Tag 6153.
func (m QuoteCancel) GetOwnerTraderID() (v string, err quickfix.MessageRejectError) {
var f field.OwnerTraderIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasAccount returns true if Account is present, Tag 1.
func (m QuoteCancel) HasAccount() bool {
return m.Has(tag.Account)
}
// HasText returns true if Text is present, Tag 58.
func (m QuoteCancel) HasText() bool {
return m.Has(tag.Text)
}
// HasTransactTime returns true if TransactTime is present, Tag 60.
func (m QuoteCancel) HasTransactTime() bool {
return m.Has(tag.TransactTime)
}
// HasQuoteID returns true if QuoteID is present, Tag 117.
func (m QuoteCancel) HasQuoteID() bool {
return m.Has(tag.QuoteID)
}
// HasQuoteReqID returns true if QuoteReqID is present, Tag 131.
func (m QuoteCancel) HasQuoteReqID() bool {
return m.Has(tag.QuoteReqID)
}
// HasQuoteCancelType returns true if QuoteCancelType is present, Tag 298.
func (m QuoteCancel) HasQuoteCancelType() bool {
return m.Has(tag.QuoteCancelType)
}
// HasQuoteResponseLevel returns true if QuoteResponseLevel is present, Tag 301.
func (m QuoteCancel) HasQuoteResponseLevel() bool {
return m.Has(tag.QuoteResponseLevel)
}
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
func (m QuoteCancel) HasTradingSessionID() bool {
return m.Has(tag.TradingSessionID)
}
// HasNoPartyIDs returns true if NoPartyIDs is present, Tag 453.
func (m QuoteCancel) HasNoPartyIDs() bool {
return m.Has(tag.NoPartyIDs)
}
// HasAccountType returns true if AccountType is present, Tag 581.
func (m QuoteCancel) HasAccountType() bool {
return m.Has(tag.AccountType)
}
// HasTradingSessionSubID returns true if TradingSessionSubID is present, Tag 625.
func (m QuoteCancel) HasTradingSessionSubID() bool {
return m.Has(tag.TradingSessionSubID)
}
// HasAcctIDSource returns true if AcctIDSource is present, Tag 660.
func (m QuoteCancel) HasAcctIDSource() bool {
return m.Has(tag.AcctIDSource)
}
// HasOwnerTraderID returns true if OwnerTraderID is present, Tag 6153.
func (m QuoteCancel) HasOwnerTraderID() bool {
return m.Has(tag.OwnerTraderID)
}
// NoPartyIDs is a repeating group element, Tag 453.
type NoPartyIDs struct {
*quickfix.Group
}
// SetPartyID sets PartyID, Tag 448.
func (m NoPartyIDs) SetPartyID(v string) {
m.Set(field.NewPartyID(v))
}
// SetPartyIDSource sets PartyIDSource, Tag 447.
func (m NoPartyIDs) SetPartyIDSource(v enum.PartyIDSource) {
m.Set(field.NewPartyIDSource(v))
}
// SetPartyRole sets PartyRole, Tag 452.
func (m NoPartyIDs) SetPartyRole(v enum.PartyRole) {
m.Set(field.NewPartyRole(v))
}
// SetPartyRoleQualifier sets PartyRoleQualifier, Tag 2376.
func (m NoPartyIDs) SetPartyRoleQualifier(v int) {
m.Set(field.NewPartyRoleQualifier(v))
}
// SetNoPartySubIDs sets NoPartySubIDs, Tag 802.
func (m NoPartyIDs) SetNoPartySubIDs(f NoPartySubIDsRepeatingGroup) {
m.SetGroup(f)
}
// GetPartyID gets PartyID, Tag 448.
func (m NoPartyIDs) GetPartyID() (v string, err quickfix.MessageRejectError) {
var f field.PartyIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetPartyIDSource gets PartyIDSource, Tag 447.
func (m NoPartyIDs) GetPartyIDSource() (v enum.PartyIDSource, err quickfix.MessageRejectError) {
var f field.PartyIDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetPartyRole gets PartyRole, Tag 452.
func (m NoPartyIDs) GetPartyRole() (v enum.PartyRole, err quickfix.MessageRejectError) {
var f field.PartyRoleField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetPartyRoleQualifier gets PartyRoleQualifier, Tag 2376.
func (m NoPartyIDs) GetPartyRoleQualifier() (v int, err quickfix.MessageRejectError) {
var f field.PartyRoleQualifierField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoPartySubIDs gets NoPartySubIDs, Tag 802.
func (m NoPartyIDs) GetNoPartySubIDs() (NoPartySubIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoPartySubIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// HasPartyID returns true if PartyID is present, Tag 448.
func (m NoPartyIDs) HasPartyID() bool {
return m.Has(tag.PartyID)
}
// HasPartyIDSource returns true if PartyIDSource is present, Tag 447.
func (m NoPartyIDs) HasPartyIDSource() bool {
return m.Has(tag.PartyIDSource)
}
// HasPartyRole returns true if PartyRole is present, Tag 452.
func (m NoPartyIDs) HasPartyRole() bool {
return m.Has(tag.PartyRole)
}
// HasPartyRoleQualifier returns true if PartyRoleQualifier is present, Tag 2376.
func (m NoPartyIDs) HasPartyRoleQualifier() bool {
return m.Has(tag.PartyRoleQualifier)
}
// HasNoPartySubIDs returns true if NoPartySubIDs is present, Tag 802.
func (m NoPartyIDs) HasNoPartySubIDs() bool {
return m.Has(tag.NoPartySubIDs)
}
// NoPartySubIDs is a repeating group element, Tag 802.
type NoPartySubIDs struct {
*quickfix.Group
}
// SetPartySubID sets PartySubID, Tag 523.
func (m NoPartySubIDs) SetPartySubID(v string) {
m.Set(field.NewPartySubID(v))
}
// SetPartySubIDType sets PartySubIDType, Tag 803.
func (m NoPartySubIDs) SetPartySubIDType(v enum.PartySubIDType) {
m.Set(field.NewPartySubIDType(v))
}
// GetPartySubID gets PartySubID, Tag 523.
func (m NoPartySubIDs) GetPartySubID() (v string, err quickfix.MessageRejectError) {
var f field.PartySubIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetPartySubIDType gets PartySubIDType, Tag 803.
func (m NoPartySubIDs) GetPartySubIDType() (v enum.PartySubIDType, err quickfix.MessageRejectError) {
var f field.PartySubIDTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasPartySubID returns true if PartySubID is present, Tag 523.
func (m NoPartySubIDs) HasPartySubID() bool {
return m.Has(tag.PartySubID)
}
// HasPartySubIDType returns true if PartySubIDType is present, Tag 803.
func (m NoPartySubIDs) HasPartySubIDType() bool {
return m.Has(tag.PartySubIDType)
}
// NoPartySubIDsRepeatingGroup is a repeating group, Tag 802.
type NoPartySubIDsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoPartySubIDsRepeatingGroup returns an initialized, NoPartySubIDsRepeatingGroup.
func NewNoPartySubIDsRepeatingGroup() NoPartySubIDsRepeatingGroup {
return NoPartySubIDsRepeatingGroup{
quickfix.NewRepeatingGroup(
tag.NoPartySubIDs,
quickfix.GroupTemplate{
quickfix.GroupElement(tag.PartySubID),
quickfix.GroupElement(tag.PartySubIDType),
},
),
}
}
// Add create and append a new NoPartySubIDs to this group.
func (m NoPartySubIDsRepeatingGroup) Add() NoPartySubIDs {
g := m.RepeatingGroup.Add()
return NoPartySubIDs{g}
}
// Get returns the ith NoPartySubIDs in the NoPartySubIDsRepeatinGroup.
func (m NoPartySubIDsRepeatingGroup) Get(i int) NoPartySubIDs {
return NoPartySubIDs{m.RepeatingGroup.Get(i)}
}
// NoPartyIDsRepeatingGroup is a repeating group, Tag 453.
type NoPartyIDsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoPartyIDsRepeatingGroup returns an initialized, NoPartyIDsRepeatingGroup.
func NewNoPartyIDsRepeatingGroup() NoPartyIDsRepeatingGroup {
return NoPartyIDsRepeatingGroup{
quickfix.NewRepeatingGroup(
tag.NoPartyIDs,
quickfix.GroupTemplate{
quickfix.GroupElement(tag.PartyID),
quickfix.GroupElement(tag.PartyIDSource),
quickfix.GroupElement(tag.PartyRole),
quickfix.GroupElement(tag.PartyRoleQualifier),
NewNoPartySubIDsRepeatingGroup(),
},
),
}
}
// Add create and append a new NoPartyIDs to this group.
func (m NoPartyIDsRepeatingGroup) Add() NoPartyIDs {
g := m.RepeatingGroup.Add()
return NoPartyIDs{g}
}
// Get returns the ith NoPartyIDs in the NoPartyIDsRepeatinGroup.
func (m NoPartyIDsRepeatingGroup) Get(i int) NoPartyIDs {
return NoPartyIDs{m.RepeatingGroup.Get(i)}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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,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 fix50sp2 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 "9", "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 fix50sp2 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 "9", "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 fix50sp2 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 "9", "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 fix50sp2 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 "9", "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)
}