adding quickfix library
This commit is contained in:
350
quickfix/gen/fix40/advertisement/Advertisement.generated.go
Normal file
350
quickfix/gen/fix40/advertisement/Advertisement.generated.go
Normal file
@ -0,0 +1,350 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package advertisement
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Advertisement is the fix40 Advertisement type, MsgType = 7.
|
||||
type Advertisement struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Advertisement from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Advertisement {
|
||||
return Advertisement{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m Advertisement) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Advertisement initialized with the required fields for Advertisement.
|
||||
func New(advid field.AdvIdField, advtranstype field.AdvTransTypeField, symbol field.SymbolField, advside field.AdvSideField, shares field.SharesField) (m Advertisement) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("7"))
|
||||
m.Set(advid)
|
||||
m.Set(advtranstype)
|
||||
m.Set(symbol)
|
||||
m.Set(advside)
|
||||
m.Set(shares)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Advertisement, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "7", r
|
||||
}
|
||||
|
||||
// SetAdvId sets AdvId, Tag 2.
|
||||
func (m Advertisement) SetAdvId(v string) {
|
||||
m.Set(field.NewAdvId(v))
|
||||
}
|
||||
|
||||
// SetAdvRefID sets AdvRefID, Tag 3.
|
||||
func (m Advertisement) SetAdvRefID(v string) {
|
||||
m.Set(field.NewAdvRefID(v))
|
||||
}
|
||||
|
||||
// SetAdvSide sets AdvSide, Tag 4.
|
||||
func (m Advertisement) SetAdvSide(v enum.AdvSide) {
|
||||
m.Set(field.NewAdvSide(v))
|
||||
}
|
||||
|
||||
// SetAdvTransType sets AdvTransType, Tag 5.
|
||||
func (m Advertisement) SetAdvTransType(v enum.AdvTransType) {
|
||||
m.Set(field.NewAdvTransType(v))
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m Advertisement) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m Advertisement) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetPrice sets Price, Tag 44.
|
||||
func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrice(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m Advertisement) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetShares sets Shares, Tag 53.
|
||||
func (m Advertisement) SetShares(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewShares(value, scale))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m Advertisement) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m Advertisement) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m Advertisement) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m Advertisement) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m Advertisement) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m Advertisement) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// GetAdvId gets AdvId, Tag 2.
|
||||
func (m Advertisement) GetAdvId() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AdvIdField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAdvRefID gets AdvRefID, Tag 3.
|
||||
func (m Advertisement) GetAdvRefID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AdvRefIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAdvSide gets AdvSide, Tag 4.
|
||||
func (m Advertisement) GetAdvSide() (v enum.AdvSide, err quickfix.MessageRejectError) {
|
||||
var f field.AdvSideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAdvTransType gets AdvTransType, Tag 5.
|
||||
func (m Advertisement) GetAdvTransType() (v enum.AdvTransType, err quickfix.MessageRejectError) {
|
||||
var f field.AdvTransTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m Advertisement) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m Advertisement) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrice gets Price, Tag 44.
|
||||
func (m Advertisement) GetPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m Advertisement) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetShares gets Shares, Tag 53.
|
||||
func (m Advertisement) GetShares() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.SharesField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m Advertisement) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m Advertisement) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTransactTime gets TransactTime, Tag 60.
|
||||
func (m Advertisement) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m Advertisement) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m Advertisement) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m Advertisement) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasAdvId returns true if AdvId is present, Tag 2.
|
||||
func (m Advertisement) HasAdvId() bool {
|
||||
return m.Has(tag.AdvId)
|
||||
}
|
||||
|
||||
// HasAdvRefID returns true if AdvRefID is present, Tag 3.
|
||||
func (m Advertisement) HasAdvRefID() bool {
|
||||
return m.Has(tag.AdvRefID)
|
||||
}
|
||||
|
||||
// HasAdvSide returns true if AdvSide is present, Tag 4.
|
||||
func (m Advertisement) HasAdvSide() bool {
|
||||
return m.Has(tag.AdvSide)
|
||||
}
|
||||
|
||||
// HasAdvTransType returns true if AdvTransType is present, Tag 5.
|
||||
func (m Advertisement) HasAdvTransType() bool {
|
||||
return m.Has(tag.AdvTransType)
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m Advertisement) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m Advertisement) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasPrice returns true if Price is present, Tag 44.
|
||||
func (m Advertisement) HasPrice() bool {
|
||||
return m.Has(tag.Price)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m Advertisement) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasShares returns true if Shares is present, Tag 53.
|
||||
func (m Advertisement) HasShares() bool {
|
||||
return m.Has(tag.Shares)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m Advertisement) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m Advertisement) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m Advertisement) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m Advertisement) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m Advertisement) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m Advertisement) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
1120
quickfix/gen/fix40/allocation/Allocation.generated.go
Normal file
1120
quickfix/gen/fix40/allocation/Allocation.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
213
quickfix/gen/fix40/allocationack/AllocationACK.generated.go
Normal file
213
quickfix/gen/fix40/allocationack/AllocationACK.generated.go
Normal file
@ -0,0 +1,213 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package allocationack
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// AllocationACK is the fix40 AllocationACK type, MsgType = P.
|
||||
type AllocationACK struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a AllocationACK from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) AllocationACK {
|
||||
return AllocationACK{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m AllocationACK) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a AllocationACK initialized with the required fields for AllocationACK.
|
||||
func New(allocid field.AllocIDField, tradedate field.TradeDateField, allocstatus field.AllocStatusField) (m AllocationACK) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("P"))
|
||||
m.Set(allocid)
|
||||
m.Set(tradedate)
|
||||
m.Set(allocstatus)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg AllocationACK, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "P", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m AllocationACK) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTransactTime sets TransactTime, Tag 60.
|
||||
func (m AllocationACK) SetTransactTime(v time.Time) {
|
||||
m.Set(field.NewTransactTime(v))
|
||||
}
|
||||
|
||||
// SetAllocID sets AllocID, Tag 70.
|
||||
func (m AllocationACK) SetAllocID(v string) {
|
||||
m.Set(field.NewAllocID(v))
|
||||
}
|
||||
|
||||
// SetTradeDate sets TradeDate, Tag 75.
|
||||
func (m AllocationACK) SetTradeDate(v string) {
|
||||
m.Set(field.NewTradeDate(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m AllocationACK) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetAllocStatus sets AllocStatus, Tag 87.
|
||||
func (m AllocationACK) SetAllocStatus(v enum.AllocStatus) {
|
||||
m.Set(field.NewAllocStatus(v))
|
||||
}
|
||||
|
||||
// SetAllocRejCode sets AllocRejCode, Tag 88.
|
||||
func (m AllocationACK) SetAllocRejCode(v enum.AllocRejCode) {
|
||||
m.Set(field.NewAllocRejCode(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m AllocationACK) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m AllocationACK) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTransactTime gets TransactTime, Tag 60.
|
||||
func (m AllocationACK) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.TransactTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAllocID gets AllocID, Tag 70.
|
||||
func (m AllocationACK) GetAllocID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AllocIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTradeDate gets TradeDate, Tag 75.
|
||||
func (m AllocationACK) GetTradeDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TradeDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m AllocationACK) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAllocStatus gets AllocStatus, Tag 87.
|
||||
func (m AllocationACK) GetAllocStatus() (v enum.AllocStatus, err quickfix.MessageRejectError) {
|
||||
var f field.AllocStatusField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAllocRejCode gets AllocRejCode, Tag 88.
|
||||
func (m AllocationACK) GetAllocRejCode() (v enum.AllocRejCode, err quickfix.MessageRejectError) {
|
||||
var f field.AllocRejCodeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m AllocationACK) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m AllocationACK) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTransactTime returns true if TransactTime is present, Tag 60.
|
||||
func (m AllocationACK) HasTransactTime() bool {
|
||||
return m.Has(tag.TransactTime)
|
||||
}
|
||||
|
||||
// HasAllocID returns true if AllocID is present, Tag 70.
|
||||
func (m AllocationACK) HasAllocID() bool {
|
||||
return m.Has(tag.AllocID)
|
||||
}
|
||||
|
||||
// HasTradeDate returns true if TradeDate is present, Tag 75.
|
||||
func (m AllocationACK) HasTradeDate() bool {
|
||||
return m.Has(tag.TradeDate)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m AllocationACK) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasAllocStatus returns true if AllocStatus is present, Tag 87.
|
||||
func (m AllocationACK) HasAllocStatus() bool {
|
||||
return m.Has(tag.AllocStatus)
|
||||
}
|
||||
|
||||
// HasAllocRejCode returns true if AllocRejCode is present, Tag 88.
|
||||
func (m AllocationACK) HasAllocRejCode() bool {
|
||||
return m.Has(tag.AllocRejCode)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m AllocationACK) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
235
quickfix/gen/fix40/dontknowtrade/DontKnowTrade.generated.go
Normal file
235
quickfix/gen/fix40/dontknowtrade/DontKnowTrade.generated.go
Normal file
@ -0,0 +1,235 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package dontknowtrade
|
||||
|
||||
import (
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// DontKnowTrade is the fix40 DontKnowTrade type, MsgType = Q.
|
||||
type DontKnowTrade struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a DontKnowTrade from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) DontKnowTrade {
|
||||
return DontKnowTrade{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m DontKnowTrade) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a DontKnowTrade initialized with the required fields for DontKnowTrade.
|
||||
func New(dkreason field.DKReasonField, symbol field.SymbolField, side field.SideField, orderqty field.OrderQtyField, lastshares field.LastSharesField, lastpx field.LastPxField) (m DontKnowTrade) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("Q"))
|
||||
m.Set(dkreason)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
m.Set(orderqty)
|
||||
m.Set(lastshares)
|
||||
m.Set(lastpx)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg DontKnowTrade, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "Q", r
|
||||
}
|
||||
|
||||
// SetExecID sets ExecID, Tag 17.
|
||||
func (m DontKnowTrade) SetExecID(v string) {
|
||||
m.Set(field.NewExecID(v))
|
||||
}
|
||||
|
||||
// SetLastPx sets LastPx, Tag 31.
|
||||
func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewLastPx(value, scale))
|
||||
}
|
||||
|
||||
// SetLastShares sets LastShares, Tag 32.
|
||||
func (m DontKnowTrade) SetLastShares(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewLastShares(value, scale))
|
||||
}
|
||||
|
||||
// SetOrderID sets OrderID, Tag 37.
|
||||
func (m DontKnowTrade) SetOrderID(v string) {
|
||||
m.Set(field.NewOrderID(v))
|
||||
}
|
||||
|
||||
// SetOrderQty sets OrderQty, Tag 38.
|
||||
func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m DontKnowTrade) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m DontKnowTrade) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m DontKnowTrade) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetDKReason sets DKReason, Tag 127.
|
||||
func (m DontKnowTrade) SetDKReason(v enum.DKReason) {
|
||||
m.Set(field.NewDKReason(v))
|
||||
}
|
||||
|
||||
// GetExecID gets ExecID, Tag 17.
|
||||
func (m DontKnowTrade) GetExecID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLastPx gets LastPx, Tag 31.
|
||||
func (m DontKnowTrade) GetLastPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.LastPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLastShares gets LastShares, Tag 32.
|
||||
func (m DontKnowTrade) GetLastShares() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.LastSharesField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderID gets OrderID, Tag 37.
|
||||
func (m DontKnowTrade) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty gets OrderQty, Tag 38.
|
||||
func (m DontKnowTrade) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m DontKnowTrade) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m DontKnowTrade) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m DontKnowTrade) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetDKReason gets DKReason, Tag 127.
|
||||
func (m DontKnowTrade) GetDKReason() (v enum.DKReason, err quickfix.MessageRejectError) {
|
||||
var f field.DKReasonField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasExecID returns true if ExecID is present, Tag 17.
|
||||
func (m DontKnowTrade) HasExecID() bool {
|
||||
return m.Has(tag.ExecID)
|
||||
}
|
||||
|
||||
// HasLastPx returns true if LastPx is present, Tag 31.
|
||||
func (m DontKnowTrade) HasLastPx() bool {
|
||||
return m.Has(tag.LastPx)
|
||||
}
|
||||
|
||||
// HasLastShares returns true if LastShares is present, Tag 32.
|
||||
func (m DontKnowTrade) HasLastShares() bool {
|
||||
return m.Has(tag.LastShares)
|
||||
}
|
||||
|
||||
// HasOrderID returns true if OrderID is present, Tag 37.
|
||||
func (m DontKnowTrade) HasOrderID() bool {
|
||||
return m.Has(tag.OrderID)
|
||||
}
|
||||
|
||||
// HasOrderQty returns true if OrderQty is present, Tag 38.
|
||||
func (m DontKnowTrade) HasOrderQty() bool {
|
||||
return m.Has(tag.OrderQty)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m DontKnowTrade) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m DontKnowTrade) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m DontKnowTrade) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasDKReason returns true if DKReason is present, Tag 127.
|
||||
func (m DontKnowTrade) HasDKReason() bool {
|
||||
return m.Has(tag.DKReason)
|
||||
}
|
||||
232
quickfix/gen/fix40/email/Email.generated.go
Normal file
232
quickfix/gen/fix40/email/Email.generated.go
Normal file
@ -0,0 +1,232 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package email
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Email is the fix40 Email type, MsgType = C.
|
||||
type Email struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Email from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Email {
|
||||
return Email{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m Email) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Email initialized with the required fields for Email.
|
||||
func New(emailtype field.EmailTypeField, linesoftext field.LinesOfTextField, text field.TextField) (m Email) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("C"))
|
||||
m.Set(emailtype)
|
||||
m.Set(linesoftext)
|
||||
m.Set(text)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Email, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "C", r
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m Email) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetLinesOfText sets LinesOfText, Tag 33.
|
||||
func (m Email) SetLinesOfText(v int) {
|
||||
m.Set(field.NewLinesOfText(v))
|
||||
}
|
||||
|
||||
// SetOrderID sets OrderID, Tag 37.
|
||||
func (m Email) SetOrderID(v string) {
|
||||
m.Set(field.NewOrderID(v))
|
||||
}
|
||||
|
||||
// SetOrigTime sets OrigTime, Tag 42.
|
||||
func (m Email) SetOrigTime(v time.Time) {
|
||||
m.Set(field.NewOrigTime(v))
|
||||
}
|
||||
|
||||
// SetRelatdSym sets RelatdSym, Tag 46.
|
||||
func (m Email) SetRelatdSym(v string) {
|
||||
m.Set(field.NewRelatdSym(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m Email) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetEmailType sets EmailType, Tag 94.
|
||||
func (m Email) SetEmailType(v enum.EmailType) {
|
||||
m.Set(field.NewEmailType(v))
|
||||
}
|
||||
|
||||
// SetRawDataLength sets RawDataLength, Tag 95.
|
||||
func (m Email) SetRawDataLength(v int) {
|
||||
m.Set(field.NewRawDataLength(v))
|
||||
}
|
||||
|
||||
// SetRawData sets RawData, Tag 96.
|
||||
func (m Email) SetRawData(v string) {
|
||||
m.Set(field.NewRawData(v))
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m Email) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLinesOfText gets LinesOfText, Tag 33.
|
||||
func (m Email) GetLinesOfText() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.LinesOfTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderID gets OrderID, Tag 37.
|
||||
func (m Email) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrigTime gets OrigTime, Tag 42.
|
||||
func (m Email) GetOrigTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.OrigTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRelatdSym gets RelatdSym, Tag 46.
|
||||
func (m Email) GetRelatdSym() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.RelatdSymField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m Email) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEmailType gets EmailType, Tag 94.
|
||||
func (m Email) GetEmailType() (v enum.EmailType, err quickfix.MessageRejectError) {
|
||||
var f field.EmailTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRawDataLength gets RawDataLength, Tag 95.
|
||||
func (m Email) GetRawDataLength() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.RawDataLengthField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRawData gets RawData, Tag 96.
|
||||
func (m Email) GetRawData() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.RawDataField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m Email) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasLinesOfText returns true if LinesOfText is present, Tag 33.
|
||||
func (m Email) HasLinesOfText() bool {
|
||||
return m.Has(tag.LinesOfText)
|
||||
}
|
||||
|
||||
// HasOrderID returns true if OrderID is present, Tag 37.
|
||||
func (m Email) HasOrderID() bool {
|
||||
return m.Has(tag.OrderID)
|
||||
}
|
||||
|
||||
// HasOrigTime returns true if OrigTime is present, Tag 42.
|
||||
func (m Email) HasOrigTime() bool {
|
||||
return m.Has(tag.OrigTime)
|
||||
}
|
||||
|
||||
// HasRelatdSym returns true if RelatdSym is present, Tag 46.
|
||||
func (m Email) HasRelatdSym() bool {
|
||||
return m.Has(tag.RelatdSym)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m Email) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasEmailType returns true if EmailType is present, Tag 94.
|
||||
func (m Email) HasEmailType() bool {
|
||||
return m.Has(tag.EmailType)
|
||||
}
|
||||
|
||||
// HasRawDataLength returns true if RawDataLength is present, Tag 95.
|
||||
func (m Email) HasRawDataLength() bool {
|
||||
return m.Has(tag.RawDataLength)
|
||||
}
|
||||
|
||||
// HasRawData returns true if RawData is present, Tag 96.
|
||||
func (m Email) HasRawData() bool {
|
||||
return m.Has(tag.RawData)
|
||||
}
|
||||
1016
quickfix/gen/fix40/executionreport/ExecutionReport.generated.go
Normal file
1016
quickfix/gen/fix40/executionreport/ExecutionReport.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
365
quickfix/gen/fix40/header.generated.go
Normal file
365
quickfix/gen/fix40/header.generated.go
Normal file
@ -0,0 +1,365 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package fix40
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Header is the fix40 Header type.
|
||||
type Header struct {
|
||||
*quickfix.Header
|
||||
}
|
||||
|
||||
// NewHeader returns a new, initialized Header instance.
|
||||
func NewHeader(header *quickfix.Header) (h Header) {
|
||||
h.Header = header
|
||||
h.SetBeginString("FIX.4.0")
|
||||
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))
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
// 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)
|
||||
}
|
||||
74
quickfix/gen/fix40/heartbeat/Heartbeat.generated.go
Normal file
74
quickfix/gen/fix40/heartbeat/Heartbeat.generated.go
Normal file
@ -0,0 +1,74 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package heartbeat
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Heartbeat is the fix40 Heartbeat type, MsgType = 0.
|
||||
type Heartbeat struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Heartbeat from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Heartbeat {
|
||||
return Heartbeat{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.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 = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("0"))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Heartbeat, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "0", r
|
||||
}
|
||||
|
||||
// SetTestReqID sets TestReqID, Tag 112.
|
||||
func (m Heartbeat) SetTestReqID(v string) {
|
||||
m.Set(field.NewTestReqID(v))
|
||||
}
|
||||
|
||||
// GetTestReqID gets TestReqID, Tag 112.
|
||||
func (m Heartbeat) GetTestReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TestReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasTestReqID returns true if TestReqID is present, Tag 112.
|
||||
func (m Heartbeat) HasTestReqID() bool {
|
||||
return m.Has(tag.TestReqID)
|
||||
}
|
||||
@ -0,0 +1,426 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package indicationofinterest
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// IndicationofInterest is the fix40 IndicationofInterest type, MsgType = 6.
|
||||
type IndicationofInterest struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a IndicationofInterest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) IndicationofInterest {
|
||||
return IndicationofInterest{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m IndicationofInterest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a IndicationofInterest initialized with the required fields for IndicationofInterest.
|
||||
func New(ioiid field.IOIidField, ioitranstype field.IOITransTypeField, symbol field.SymbolField, side field.SideField, ioishares field.IOISharesField) (m IndicationofInterest) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("6"))
|
||||
m.Set(ioiid)
|
||||
m.Set(ioitranstype)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
m.Set(ioishares)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg IndicationofInterest, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "6", r
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m IndicationofInterest) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m IndicationofInterest) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetIOIid sets IOIid, Tag 23.
|
||||
func (m IndicationofInterest) SetIOIid(v string) {
|
||||
m.Set(field.NewIOIid(v))
|
||||
}
|
||||
|
||||
// SetIOIOthSvc sets IOIOthSvc, Tag 24.
|
||||
func (m IndicationofInterest) SetIOIOthSvc(v enum.IOIOthSvc) {
|
||||
m.Set(field.NewIOIOthSvc(v))
|
||||
}
|
||||
|
||||
// SetIOIQltyInd sets IOIQltyInd, Tag 25.
|
||||
func (m IndicationofInterest) SetIOIQltyInd(v enum.IOIQltyInd) {
|
||||
m.Set(field.NewIOIQltyInd(v))
|
||||
}
|
||||
|
||||
// SetIOIRefID sets IOIRefID, Tag 26.
|
||||
func (m IndicationofInterest) SetIOIRefID(v string) {
|
||||
m.Set(field.NewIOIRefID(v))
|
||||
}
|
||||
|
||||
// SetIOIShares sets IOIShares, Tag 27.
|
||||
func (m IndicationofInterest) SetIOIShares(v enum.IOIShares) {
|
||||
m.Set(field.NewIOIShares(v))
|
||||
}
|
||||
|
||||
// SetIOITransType sets IOITransType, Tag 28.
|
||||
func (m IndicationofInterest) SetIOITransType(v enum.IOITransType) {
|
||||
m.Set(field.NewIOITransType(v))
|
||||
}
|
||||
|
||||
// SetPrice sets Price, Tag 44.
|
||||
func (m IndicationofInterest) SetPrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrice(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m IndicationofInterest) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m IndicationofInterest) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m IndicationofInterest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m IndicationofInterest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetValidUntilTime sets ValidUntilTime, Tag 62.
|
||||
func (m IndicationofInterest) SetValidUntilTime(v time.Time) {
|
||||
m.Set(field.NewValidUntilTime(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m IndicationofInterest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetIOIQualifier sets IOIQualifier, Tag 104.
|
||||
func (m IndicationofInterest) SetIOIQualifier(v enum.IOIQualifier) {
|
||||
m.Set(field.NewIOIQualifier(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m IndicationofInterest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m IndicationofInterest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetIOINaturalFlag sets IOINaturalFlag, Tag 130.
|
||||
func (m IndicationofInterest) SetIOINaturalFlag(v bool) {
|
||||
m.Set(field.NewIOINaturalFlag(v))
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m IndicationofInterest) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m IndicationofInterest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIid gets IOIid, Tag 23.
|
||||
func (m IndicationofInterest) GetIOIid() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IOIidField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIOthSvc gets IOIOthSvc, Tag 24.
|
||||
func (m IndicationofInterest) GetIOIOthSvc() (v enum.IOIOthSvc, err quickfix.MessageRejectError) {
|
||||
var f field.IOIOthSvcField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIQltyInd gets IOIQltyInd, Tag 25.
|
||||
func (m IndicationofInterest) GetIOIQltyInd() (v enum.IOIQltyInd, err quickfix.MessageRejectError) {
|
||||
var f field.IOIQltyIndField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIRefID gets IOIRefID, Tag 26.
|
||||
func (m IndicationofInterest) GetIOIRefID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IOIRefIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIShares gets IOIShares, Tag 27.
|
||||
func (m IndicationofInterest) GetIOIShares() (v enum.IOIShares, err quickfix.MessageRejectError) {
|
||||
var f field.IOISharesField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOITransType gets IOITransType, Tag 28.
|
||||
func (m IndicationofInterest) GetIOITransType() (v enum.IOITransType, err quickfix.MessageRejectError) {
|
||||
var f field.IOITransTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrice gets Price, Tag 44.
|
||||
func (m IndicationofInterest) GetPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m IndicationofInterest) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m IndicationofInterest) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m IndicationofInterest) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m IndicationofInterest) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetValidUntilTime gets ValidUntilTime, Tag 62.
|
||||
func (m IndicationofInterest) GetValidUntilTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.ValidUntilTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m IndicationofInterest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIQualifier gets IOIQualifier, Tag 104.
|
||||
func (m IndicationofInterest) GetIOIQualifier() (v enum.IOIQualifier, err quickfix.MessageRejectError) {
|
||||
var f field.IOIQualifierField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m IndicationofInterest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m IndicationofInterest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOINaturalFlag gets IOINaturalFlag, Tag 130.
|
||||
func (m IndicationofInterest) GetIOINaturalFlag() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.IOINaturalFlagField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m IndicationofInterest) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m IndicationofInterest) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasIOIid returns true if IOIid is present, Tag 23.
|
||||
func (m IndicationofInterest) HasIOIid() bool {
|
||||
return m.Has(tag.IOIid)
|
||||
}
|
||||
|
||||
// HasIOIOthSvc returns true if IOIOthSvc is present, Tag 24.
|
||||
func (m IndicationofInterest) HasIOIOthSvc() bool {
|
||||
return m.Has(tag.IOIOthSvc)
|
||||
}
|
||||
|
||||
// HasIOIQltyInd returns true if IOIQltyInd is present, Tag 25.
|
||||
func (m IndicationofInterest) HasIOIQltyInd() bool {
|
||||
return m.Has(tag.IOIQltyInd)
|
||||
}
|
||||
|
||||
// HasIOIRefID returns true if IOIRefID is present, Tag 26.
|
||||
func (m IndicationofInterest) HasIOIRefID() bool {
|
||||
return m.Has(tag.IOIRefID)
|
||||
}
|
||||
|
||||
// HasIOIShares returns true if IOIShares is present, Tag 27.
|
||||
func (m IndicationofInterest) HasIOIShares() bool {
|
||||
return m.Has(tag.IOIShares)
|
||||
}
|
||||
|
||||
// HasIOITransType returns true if IOITransType is present, Tag 28.
|
||||
func (m IndicationofInterest) HasIOITransType() bool {
|
||||
return m.Has(tag.IOITransType)
|
||||
}
|
||||
|
||||
// HasPrice returns true if Price is present, Tag 44.
|
||||
func (m IndicationofInterest) HasPrice() bool {
|
||||
return m.Has(tag.Price)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m IndicationofInterest) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m IndicationofInterest) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m IndicationofInterest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m IndicationofInterest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasValidUntilTime returns true if ValidUntilTime is present, Tag 62.
|
||||
func (m IndicationofInterest) HasValidUntilTime() bool {
|
||||
return m.Has(tag.ValidUntilTime)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m IndicationofInterest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasIOIQualifier returns true if IOIQualifier is present, Tag 104.
|
||||
func (m IndicationofInterest) HasIOIQualifier() bool {
|
||||
return m.Has(tag.IOIQualifier)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m IndicationofInterest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m IndicationofInterest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasIOINaturalFlag returns true if IOINaturalFlag is present, Tag 130.
|
||||
func (m IndicationofInterest) HasIOINaturalFlag() bool {
|
||||
return m.Has(tag.IOINaturalFlag)
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package listcancelrequest
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ListCancelRequest is the fix40 ListCancelRequest type, MsgType = K.
|
||||
type ListCancelRequest struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListCancelRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListCancelRequest {
|
||||
return ListCancelRequest{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m ListCancelRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ListCancelRequest initialized with the required fields for ListCancelRequest.
|
||||
func New(listid field.ListIDField) (m ListCancelRequest) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("K"))
|
||||
m.Set(listid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ListCancelRequest, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "K", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m ListCancelRequest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListCancelRequest) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetWaveNo sets WaveNo, Tag 105.
|
||||
func (m ListCancelRequest) SetWaveNo(v string) {
|
||||
m.Set(field.NewWaveNo(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m ListCancelRequest) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListCancelRequest) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetWaveNo gets WaveNo, Tag 105.
|
||||
func (m ListCancelRequest) GetWaveNo() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.WaveNoField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m ListCancelRequest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListCancelRequest) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasWaveNo returns true if WaveNo is present, Tag 105.
|
||||
func (m ListCancelRequest) HasWaveNo() bool {
|
||||
return m.Has(tag.WaveNo)
|
||||
}
|
||||
113
quickfix/gen/fix40/listexecute/ListExecute.generated.go
Normal file
113
quickfix/gen/fix40/listexecute/ListExecute.generated.go
Normal file
@ -0,0 +1,113 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package listexecute
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ListExecute is the fix40 ListExecute type, MsgType = L.
|
||||
type ListExecute struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListExecute from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListExecute {
|
||||
return ListExecute{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m ListExecute) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ListExecute initialized with the required fields for ListExecute.
|
||||
func New(listid field.ListIDField) (m ListExecute) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("L"))
|
||||
m.Set(listid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ListExecute, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "L", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m ListExecute) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListExecute) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetWaveNo sets WaveNo, Tag 105.
|
||||
func (m ListExecute) SetWaveNo(v string) {
|
||||
m.Set(field.NewWaveNo(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m ListExecute) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListExecute) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetWaveNo gets WaveNo, Tag 105.
|
||||
func (m ListExecute) GetWaveNo() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.WaveNoField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m ListExecute) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListExecute) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasWaveNo returns true if WaveNo is present, Tag 105.
|
||||
func (m ListExecute) HasWaveNo() bool {
|
||||
return m.Has(tag.WaveNo)
|
||||
}
|
||||
265
quickfix/gen/fix40/liststatus/ListStatus.generated.go
Normal file
265
quickfix/gen/fix40/liststatus/ListStatus.generated.go
Normal file
@ -0,0 +1,265 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package liststatus
|
||||
|
||||
import (
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ListStatus is the fix40 ListStatus type, MsgType = N.
|
||||
type ListStatus struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListStatus from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListStatus {
|
||||
return ListStatus{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m ListStatus) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ListStatus initialized with the required fields for ListStatus.
|
||||
func New(listid field.ListIDField, norpts field.NoRptsField, rptseq field.RptSeqField) (m ListStatus) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("N"))
|
||||
m.Set(listid)
|
||||
m.Set(norpts)
|
||||
m.Set(rptseq)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ListStatus, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "N", r
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListStatus) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetNoOrders sets NoOrders, Tag 73.
|
||||
func (m ListStatus) SetNoOrders(f NoOrdersRepeatingGroup) {
|
||||
m.SetGroup(f)
|
||||
}
|
||||
|
||||
// SetNoRpts sets NoRpts, Tag 82.
|
||||
func (m ListStatus) SetNoRpts(v int) {
|
||||
m.Set(field.NewNoRpts(v))
|
||||
}
|
||||
|
||||
// SetRptSeq sets RptSeq, Tag 83.
|
||||
func (m ListStatus) SetRptSeq(v int) {
|
||||
m.Set(field.NewRptSeq(v))
|
||||
}
|
||||
|
||||
// SetWaveNo sets WaveNo, Tag 105.
|
||||
func (m ListStatus) SetWaveNo(v string) {
|
||||
m.Set(field.NewWaveNo(v))
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListStatus) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetNoOrders gets NoOrders, Tag 73.
|
||||
func (m ListStatus) GetNoOrders() (NoOrdersRepeatingGroup, quickfix.MessageRejectError) {
|
||||
f := NewNoOrdersRepeatingGroup()
|
||||
err := m.GetGroup(f)
|
||||
return f, err
|
||||
}
|
||||
|
||||
// GetNoRpts gets NoRpts, Tag 82.
|
||||
func (m ListStatus) GetNoRpts() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.NoRptsField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRptSeq gets RptSeq, Tag 83.
|
||||
func (m ListStatus) GetRptSeq() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.RptSeqField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetWaveNo gets WaveNo, Tag 105.
|
||||
func (m ListStatus) GetWaveNo() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.WaveNoField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListStatus) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasNoOrders returns true if NoOrders is present, Tag 73.
|
||||
func (m ListStatus) HasNoOrders() bool {
|
||||
return m.Has(tag.NoOrders)
|
||||
}
|
||||
|
||||
// HasNoRpts returns true if NoRpts is present, Tag 82.
|
||||
func (m ListStatus) HasNoRpts() bool {
|
||||
return m.Has(tag.NoRpts)
|
||||
}
|
||||
|
||||
// HasRptSeq returns true if RptSeq is present, Tag 83.
|
||||
func (m ListStatus) HasRptSeq() bool {
|
||||
return m.Has(tag.RptSeq)
|
||||
}
|
||||
|
||||
// HasWaveNo returns true if WaveNo is present, Tag 105.
|
||||
func (m ListStatus) HasWaveNo() bool {
|
||||
return m.Has(tag.WaveNo)
|
||||
}
|
||||
|
||||
// NoOrders is a repeating group element, Tag 73.
|
||||
type NoOrders struct {
|
||||
*quickfix.Group
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m NoOrders) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetCumQty sets CumQty, Tag 14.
|
||||
func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCumQty(value, scale))
|
||||
}
|
||||
|
||||
// SetCxlQty sets CxlQty, Tag 84.
|
||||
func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCxlQty(value, scale))
|
||||
}
|
||||
|
||||
// SetAvgPx sets AvgPx, Tag 6.
|
||||
func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewAvgPx(value, scale))
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m NoOrders) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCumQty gets CumQty, Tag 14.
|
||||
func (m NoOrders) GetCumQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CumQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCxlQty gets CxlQty, Tag 84.
|
||||
func (m NoOrders) GetCxlQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CxlQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetAvgPx gets AvgPx, Tag 6.
|
||||
func (m NoOrders) GetAvgPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.AvgPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m NoOrders) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasCumQty returns true if CumQty is present, Tag 14.
|
||||
func (m NoOrders) HasCumQty() bool {
|
||||
return m.Has(tag.CumQty)
|
||||
}
|
||||
|
||||
// HasCxlQty returns true if CxlQty is present, Tag 84.
|
||||
func (m NoOrders) HasCxlQty() bool {
|
||||
return m.Has(tag.CxlQty)
|
||||
}
|
||||
|
||||
// HasAvgPx returns true if AvgPx is present, Tag 6.
|
||||
func (m NoOrders) HasAvgPx() bool {
|
||||
return m.Has(tag.AvgPx)
|
||||
}
|
||||
|
||||
// NoOrdersRepeatingGroup is a repeating group, Tag 73.
|
||||
type NoOrdersRepeatingGroup struct {
|
||||
*quickfix.RepeatingGroup
|
||||
}
|
||||
|
||||
// NewNoOrdersRepeatingGroup returns an initialized, NoOrdersRepeatingGroup.
|
||||
func NewNoOrdersRepeatingGroup() NoOrdersRepeatingGroup {
|
||||
return NoOrdersRepeatingGroup{
|
||||
quickfix.NewRepeatingGroup(
|
||||
tag.NoOrders,
|
||||
quickfix.GroupTemplate{
|
||||
quickfix.GroupElement(tag.ClOrdID),
|
||||
quickfix.GroupElement(tag.CumQty),
|
||||
quickfix.GroupElement(tag.CxlQty),
|
||||
quickfix.GroupElement(tag.AvgPx),
|
||||
},
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// Add create and append a new NoOrders to this group.
|
||||
func (m NoOrdersRepeatingGroup) Add() NoOrders {
|
||||
g := m.RepeatingGroup.Add()
|
||||
return NoOrders{g}
|
||||
}
|
||||
|
||||
// Get returns the ith NoOrders in the NoOrdersRepeatinGroup.
|
||||
func (m NoOrdersRepeatingGroup) Get(i int) NoOrders {
|
||||
return NoOrders{m.RepeatingGroup.Get(i)}
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package liststatusrequest
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ListStatusRequest is the fix40 ListStatusRequest type, MsgType = M.
|
||||
type ListStatusRequest struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListStatusRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListStatusRequest {
|
||||
return ListStatusRequest{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m ListStatusRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a ListStatusRequest initialized with the required fields for ListStatusRequest.
|
||||
func New(listid field.ListIDField) (m ListStatusRequest) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("M"))
|
||||
m.Set(listid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ListStatusRequest, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "M", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m ListStatusRequest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListStatusRequest) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetWaveNo sets WaveNo, Tag 105.
|
||||
func (m ListStatusRequest) SetWaveNo(v string) {
|
||||
m.Set(field.NewWaveNo(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m ListStatusRequest) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListStatusRequest) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetWaveNo gets WaveNo, Tag 105.
|
||||
func (m ListStatusRequest) GetWaveNo() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.WaveNoField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m ListStatusRequest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListStatusRequest) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasWaveNo returns true if WaveNo is present, Tag 105.
|
||||
func (m ListStatusRequest) HasWaveNo() bool {
|
||||
return m.Has(tag.WaveNo)
|
||||
}
|
||||
134
quickfix/gen/fix40/logon/Logon.generated.go
Normal file
134
quickfix/gen/fix40/logon/Logon.generated.go
Normal file
@ -0,0 +1,134 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package logon
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Logon is the fix40 Logon type, MsgType = A.
|
||||
type Logon struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Logon from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Logon {
|
||||
return Logon{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m Logon) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Logon initialized with the required fields for Logon.
|
||||
func New(encryptmethod field.EncryptMethodField, heartbtint field.HeartBtIntField) (m Logon) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("A"))
|
||||
m.Set(encryptmethod)
|
||||
m.Set(heartbtint)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Logon, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "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))
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
// 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)
|
||||
}
|
||||
74
quickfix/gen/fix40/logout/Logout.generated.go
Normal file
74
quickfix/gen/fix40/logout/Logout.generated.go
Normal file
@ -0,0 +1,74 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package logout
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Logout is the fix40 Logout type, MsgType = 5.
|
||||
type Logout struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Logout from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Logout {
|
||||
return Logout{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.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 = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("5"))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Logout, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "5", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m Logout) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m Logout) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m Logout) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
810
quickfix/gen/fix40/neworderlist/NewOrderList.generated.go
Normal file
810
quickfix/gen/fix40/neworderlist/NewOrderList.generated.go
Normal file
@ -0,0 +1,810 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package neworderlist
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// NewOrderList is the fix40 NewOrderList type, MsgType = E.
|
||||
type NewOrderList struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a NewOrderList from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) NewOrderList {
|
||||
return NewOrderList{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m NewOrderList) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a NewOrderList initialized with the required fields for NewOrderList.
|
||||
func New(listid field.ListIDField, listseqno field.ListSeqNoField, listnoords field.ListNoOrdsField, clordid field.ClOrdIDField, handlinst field.HandlInstField, symbol field.SymbolField, side field.SideField, orderqty field.OrderQtyField, ordtype field.OrdTypeField) (m NewOrderList) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("E"))
|
||||
m.Set(listid)
|
||||
m.Set(listseqno)
|
||||
m.Set(listnoords)
|
||||
m.Set(clordid)
|
||||
m.Set(handlinst)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
m.Set(orderqty)
|
||||
m.Set(ordtype)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg NewOrderList, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "E", r
|
||||
}
|
||||
|
||||
// SetAccount sets Account, Tag 1.
|
||||
func (m NewOrderList) SetAccount(v string) {
|
||||
m.Set(field.NewAccount(v))
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m NewOrderList) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetCommission sets Commission, Tag 12.
|
||||
func (m NewOrderList) SetCommission(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCommission(value, scale))
|
||||
}
|
||||
|
||||
// SetCommType sets CommType, Tag 13.
|
||||
func (m NewOrderList) SetCommType(v enum.CommType) {
|
||||
m.Set(field.NewCommType(v))
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m NewOrderList) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetExecInst sets ExecInst, Tag 18.
|
||||
func (m NewOrderList) SetExecInst(v enum.ExecInst) {
|
||||
m.Set(field.NewExecInst(v))
|
||||
}
|
||||
|
||||
// SetHandlInst sets HandlInst, Tag 21.
|
||||
func (m NewOrderList) SetHandlInst(v enum.HandlInst) {
|
||||
m.Set(field.NewHandlInst(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m NewOrderList) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetOrderQty sets OrderQty, Tag 38.
|
||||
func (m NewOrderList) SetOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetOrdType sets OrdType, Tag 40.
|
||||
func (m NewOrderList) SetOrdType(v enum.OrdType) {
|
||||
m.Set(field.NewOrdType(v))
|
||||
}
|
||||
|
||||
// SetPrice sets Price, Tag 44.
|
||||
func (m NewOrderList) SetPrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrice(value, scale))
|
||||
}
|
||||
|
||||
// SetRule80A sets Rule80A, Tag 47.
|
||||
func (m NewOrderList) SetRule80A(v enum.Rule80A) {
|
||||
m.Set(field.NewRule80A(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m NewOrderList) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m NewOrderList) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m NewOrderList) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m NewOrderList) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTimeInForce sets TimeInForce, Tag 59.
|
||||
func (m NewOrderList) SetTimeInForce(v enum.TimeInForce) {
|
||||
m.Set(field.NewTimeInForce(v))
|
||||
}
|
||||
|
||||
// SetSettlmntTyp sets SettlmntTyp, Tag 63.
|
||||
func (m NewOrderList) SetSettlmntTyp(v enum.SettlmntTyp) {
|
||||
m.Set(field.NewSettlmntTyp(v))
|
||||
}
|
||||
|
||||
// SetFutSettDate sets FutSettDate, Tag 64.
|
||||
func (m NewOrderList) SetFutSettDate(v string) {
|
||||
m.Set(field.NewFutSettDate(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m NewOrderList) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m NewOrderList) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetListSeqNo sets ListSeqNo, Tag 67.
|
||||
func (m NewOrderList) SetListSeqNo(v int) {
|
||||
m.Set(field.NewListSeqNo(v))
|
||||
}
|
||||
|
||||
// SetListNoOrds sets ListNoOrds, Tag 68.
|
||||
func (m NewOrderList) SetListNoOrds(v int) {
|
||||
m.Set(field.NewListNoOrds(v))
|
||||
}
|
||||
|
||||
// SetListExecInst sets ListExecInst, Tag 69.
|
||||
func (m NewOrderList) SetListExecInst(v string) {
|
||||
m.Set(field.NewListExecInst(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m NewOrderList) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetProcessCode sets ProcessCode, Tag 81.
|
||||
func (m NewOrderList) SetProcessCode(v enum.ProcessCode) {
|
||||
m.Set(field.NewProcessCode(v))
|
||||
}
|
||||
|
||||
// SetStopPx sets StopPx, Tag 99.
|
||||
func (m NewOrderList) SetStopPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStopPx(value, scale))
|
||||
}
|
||||
|
||||
// SetExDestination sets ExDestination, Tag 100.
|
||||
func (m NewOrderList) SetExDestination(v enum.ExDestination) {
|
||||
m.Set(field.NewExDestination(v))
|
||||
}
|
||||
|
||||
// SetWaveNo sets WaveNo, Tag 105.
|
||||
func (m NewOrderList) SetWaveNo(v string) {
|
||||
m.Set(field.NewWaveNo(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m NewOrderList) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m NewOrderList) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m NewOrderList) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// SetMinQty sets MinQty, Tag 110.
|
||||
func (m NewOrderList) SetMinQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewMinQty(value, scale))
|
||||
}
|
||||
|
||||
// SetMaxFloor sets MaxFloor, Tag 111.
|
||||
func (m NewOrderList) SetMaxFloor(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewMaxFloor(value, scale))
|
||||
}
|
||||
|
||||
// SetLocateReqd sets LocateReqd, Tag 114.
|
||||
func (m NewOrderList) SetLocateReqd(v bool) {
|
||||
m.Set(field.NewLocateReqd(v))
|
||||
}
|
||||
|
||||
// SetSettlCurrency sets SettlCurrency, Tag 120.
|
||||
func (m NewOrderList) SetSettlCurrency(v string) {
|
||||
m.Set(field.NewSettlCurrency(v))
|
||||
}
|
||||
|
||||
// SetForexReq sets ForexReq, Tag 121.
|
||||
func (m NewOrderList) SetForexReq(v bool) {
|
||||
m.Set(field.NewForexReq(v))
|
||||
}
|
||||
|
||||
// SetExpireTime sets ExpireTime, Tag 126.
|
||||
func (m NewOrderList) SetExpireTime(v time.Time) {
|
||||
m.Set(field.NewExpireTime(v))
|
||||
}
|
||||
|
||||
// SetPrevClosePx sets PrevClosePx, Tag 140.
|
||||
func (m NewOrderList) SetPrevClosePx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrevClosePx(value, scale))
|
||||
}
|
||||
|
||||
// GetAccount gets Account, Tag 1.
|
||||
func (m NewOrderList) GetAccount() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AccountField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m NewOrderList) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCommission gets Commission, Tag 12.
|
||||
func (m NewOrderList) GetCommission() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CommissionField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCommType gets CommType, Tag 13.
|
||||
func (m NewOrderList) GetCommType() (v enum.CommType, err quickfix.MessageRejectError) {
|
||||
var f field.CommTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m NewOrderList) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecInst gets ExecInst, Tag 18.
|
||||
func (m NewOrderList) GetExecInst() (v enum.ExecInst, err quickfix.MessageRejectError) {
|
||||
var f field.ExecInstField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetHandlInst gets HandlInst, Tag 21.
|
||||
func (m NewOrderList) GetHandlInst() (v enum.HandlInst, err quickfix.MessageRejectError) {
|
||||
var f field.HandlInstField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m NewOrderList) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty gets OrderQty, Tag 38.
|
||||
func (m NewOrderList) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrdType gets OrdType, Tag 40.
|
||||
func (m NewOrderList) GetOrdType() (v enum.OrdType, err quickfix.MessageRejectError) {
|
||||
var f field.OrdTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrice gets Price, Tag 44.
|
||||
func (m NewOrderList) GetPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRule80A gets Rule80A, Tag 47.
|
||||
func (m NewOrderList) GetRule80A() (v enum.Rule80A, err quickfix.MessageRejectError) {
|
||||
var f field.Rule80AField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m NewOrderList) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m NewOrderList) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m NewOrderList) 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 NewOrderList) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTimeInForce gets TimeInForce, Tag 59.
|
||||
func (m NewOrderList) GetTimeInForce() (v enum.TimeInForce, err quickfix.MessageRejectError) {
|
||||
var f field.TimeInForceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlmntTyp gets SettlmntTyp, Tag 63.
|
||||
func (m NewOrderList) GetSettlmntTyp() (v enum.SettlmntTyp, err quickfix.MessageRejectError) {
|
||||
var f field.SettlmntTypField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFutSettDate gets FutSettDate, Tag 64.
|
||||
func (m NewOrderList) GetFutSettDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.FutSettDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m NewOrderList) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m NewOrderList) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListSeqNo gets ListSeqNo, Tag 67.
|
||||
func (m NewOrderList) GetListSeqNo() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.ListSeqNoField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListNoOrds gets ListNoOrds, Tag 68.
|
||||
func (m NewOrderList) GetListNoOrds() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.ListNoOrdsField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListExecInst gets ListExecInst, Tag 69.
|
||||
func (m NewOrderList) GetListExecInst() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListExecInstField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m NewOrderList) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetProcessCode gets ProcessCode, Tag 81.
|
||||
func (m NewOrderList) GetProcessCode() (v enum.ProcessCode, err quickfix.MessageRejectError) {
|
||||
var f field.ProcessCodeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetStopPx gets StopPx, Tag 99.
|
||||
func (m NewOrderList) GetStopPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StopPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExDestination gets ExDestination, Tag 100.
|
||||
func (m NewOrderList) GetExDestination() (v enum.ExDestination, err quickfix.MessageRejectError) {
|
||||
var f field.ExDestinationField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetWaveNo gets WaveNo, Tag 105.
|
||||
func (m NewOrderList) GetWaveNo() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.WaveNoField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m NewOrderList) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m NewOrderList) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m NewOrderList) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMinQty gets MinQty, Tag 110.
|
||||
func (m NewOrderList) GetMinQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.MinQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaxFloor gets MaxFloor, Tag 111.
|
||||
func (m NewOrderList) GetMaxFloor() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.MaxFloorField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLocateReqd gets LocateReqd, Tag 114.
|
||||
func (m NewOrderList) GetLocateReqd() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.LocateReqdField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlCurrency gets SettlCurrency, Tag 120.
|
||||
func (m NewOrderList) GetSettlCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SettlCurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetForexReq gets ForexReq, Tag 121.
|
||||
func (m NewOrderList) GetForexReq() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.ForexReqField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExpireTime gets ExpireTime, Tag 126.
|
||||
func (m NewOrderList) GetExpireTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.ExpireTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrevClosePx gets PrevClosePx, Tag 140.
|
||||
func (m NewOrderList) GetPrevClosePx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PrevClosePxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasAccount returns true if Account is present, Tag 1.
|
||||
func (m NewOrderList) HasAccount() bool {
|
||||
return m.Has(tag.Account)
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m NewOrderList) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasCommission returns true if Commission is present, Tag 12.
|
||||
func (m NewOrderList) HasCommission() bool {
|
||||
return m.Has(tag.Commission)
|
||||
}
|
||||
|
||||
// HasCommType returns true if CommType is present, Tag 13.
|
||||
func (m NewOrderList) HasCommType() bool {
|
||||
return m.Has(tag.CommType)
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m NewOrderList) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasExecInst returns true if ExecInst is present, Tag 18.
|
||||
func (m NewOrderList) HasExecInst() bool {
|
||||
return m.Has(tag.ExecInst)
|
||||
}
|
||||
|
||||
// HasHandlInst returns true if HandlInst is present, Tag 21.
|
||||
func (m NewOrderList) HasHandlInst() bool {
|
||||
return m.Has(tag.HandlInst)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m NewOrderList) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasOrderQty returns true if OrderQty is present, Tag 38.
|
||||
func (m NewOrderList) HasOrderQty() bool {
|
||||
return m.Has(tag.OrderQty)
|
||||
}
|
||||
|
||||
// HasOrdType returns true if OrdType is present, Tag 40.
|
||||
func (m NewOrderList) HasOrdType() bool {
|
||||
return m.Has(tag.OrdType)
|
||||
}
|
||||
|
||||
// HasPrice returns true if Price is present, Tag 44.
|
||||
func (m NewOrderList) HasPrice() bool {
|
||||
return m.Has(tag.Price)
|
||||
}
|
||||
|
||||
// HasRule80A returns true if Rule80A is present, Tag 47.
|
||||
func (m NewOrderList) HasRule80A() bool {
|
||||
return m.Has(tag.Rule80A)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m NewOrderList) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m NewOrderList) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m NewOrderList) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m NewOrderList) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTimeInForce returns true if TimeInForce is present, Tag 59.
|
||||
func (m NewOrderList) HasTimeInForce() bool {
|
||||
return m.Has(tag.TimeInForce)
|
||||
}
|
||||
|
||||
// HasSettlmntTyp returns true if SettlmntTyp is present, Tag 63.
|
||||
func (m NewOrderList) HasSettlmntTyp() bool {
|
||||
return m.Has(tag.SettlmntTyp)
|
||||
}
|
||||
|
||||
// HasFutSettDate returns true if FutSettDate is present, Tag 64.
|
||||
func (m NewOrderList) HasFutSettDate() bool {
|
||||
return m.Has(tag.FutSettDate)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m NewOrderList) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m NewOrderList) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasListSeqNo returns true if ListSeqNo is present, Tag 67.
|
||||
func (m NewOrderList) HasListSeqNo() bool {
|
||||
return m.Has(tag.ListSeqNo)
|
||||
}
|
||||
|
||||
// HasListNoOrds returns true if ListNoOrds is present, Tag 68.
|
||||
func (m NewOrderList) HasListNoOrds() bool {
|
||||
return m.Has(tag.ListNoOrds)
|
||||
}
|
||||
|
||||
// HasListExecInst returns true if ListExecInst is present, Tag 69.
|
||||
func (m NewOrderList) HasListExecInst() bool {
|
||||
return m.Has(tag.ListExecInst)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m NewOrderList) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasProcessCode returns true if ProcessCode is present, Tag 81.
|
||||
func (m NewOrderList) HasProcessCode() bool {
|
||||
return m.Has(tag.ProcessCode)
|
||||
}
|
||||
|
||||
// HasStopPx returns true if StopPx is present, Tag 99.
|
||||
func (m NewOrderList) HasStopPx() bool {
|
||||
return m.Has(tag.StopPx)
|
||||
}
|
||||
|
||||
// HasExDestination returns true if ExDestination is present, Tag 100.
|
||||
func (m NewOrderList) HasExDestination() bool {
|
||||
return m.Has(tag.ExDestination)
|
||||
}
|
||||
|
||||
// HasWaveNo returns true if WaveNo is present, Tag 105.
|
||||
func (m NewOrderList) HasWaveNo() bool {
|
||||
return m.Has(tag.WaveNo)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m NewOrderList) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m NewOrderList) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m NewOrderList) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
|
||||
// HasMinQty returns true if MinQty is present, Tag 110.
|
||||
func (m NewOrderList) HasMinQty() bool {
|
||||
return m.Has(tag.MinQty)
|
||||
}
|
||||
|
||||
// HasMaxFloor returns true if MaxFloor is present, Tag 111.
|
||||
func (m NewOrderList) HasMaxFloor() bool {
|
||||
return m.Has(tag.MaxFloor)
|
||||
}
|
||||
|
||||
// HasLocateReqd returns true if LocateReqd is present, Tag 114.
|
||||
func (m NewOrderList) HasLocateReqd() bool {
|
||||
return m.Has(tag.LocateReqd)
|
||||
}
|
||||
|
||||
// HasSettlCurrency returns true if SettlCurrency is present, Tag 120.
|
||||
func (m NewOrderList) HasSettlCurrency() bool {
|
||||
return m.Has(tag.SettlCurrency)
|
||||
}
|
||||
|
||||
// HasForexReq returns true if ForexReq is present, Tag 121.
|
||||
func (m NewOrderList) HasForexReq() bool {
|
||||
return m.Has(tag.ForexReq)
|
||||
}
|
||||
|
||||
// HasExpireTime returns true if ExpireTime is present, Tag 126.
|
||||
func (m NewOrderList) HasExpireTime() bool {
|
||||
return m.Has(tag.ExpireTime)
|
||||
}
|
||||
|
||||
// HasPrevClosePx returns true if PrevClosePx is present, Tag 140.
|
||||
func (m NewOrderList) HasPrevClosePx() bool {
|
||||
return m.Has(tag.PrevClosePx)
|
||||
}
|
||||
750
quickfix/gen/fix40/newordersingle/NewOrderSingle.generated.go
Normal file
750
quickfix/gen/fix40/newordersingle/NewOrderSingle.generated.go
Normal file
@ -0,0 +1,750 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package newordersingle
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// NewOrderSingle is the fix40 NewOrderSingle type, MsgType = D.
|
||||
type NewOrderSingle struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a NewOrderSingle from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) NewOrderSingle {
|
||||
return NewOrderSingle{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m NewOrderSingle) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a NewOrderSingle initialized with the required fields for NewOrderSingle.
|
||||
func New(clordid field.ClOrdIDField, handlinst field.HandlInstField, symbol field.SymbolField, side field.SideField, orderqty field.OrderQtyField, ordtype field.OrdTypeField) (m NewOrderSingle) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("D"))
|
||||
m.Set(clordid)
|
||||
m.Set(handlinst)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
m.Set(orderqty)
|
||||
m.Set(ordtype)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg NewOrderSingle, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "D", r
|
||||
}
|
||||
|
||||
// SetAccount sets Account, Tag 1.
|
||||
func (m NewOrderSingle) SetAccount(v string) {
|
||||
m.Set(field.NewAccount(v))
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m NewOrderSingle) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetCommission sets Commission, Tag 12.
|
||||
func (m NewOrderSingle) SetCommission(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCommission(value, scale))
|
||||
}
|
||||
|
||||
// SetCommType sets CommType, Tag 13.
|
||||
func (m NewOrderSingle) SetCommType(v enum.CommType) {
|
||||
m.Set(field.NewCommType(v))
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m NewOrderSingle) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetExecInst sets ExecInst, Tag 18.
|
||||
func (m NewOrderSingle) SetExecInst(v enum.ExecInst) {
|
||||
m.Set(field.NewExecInst(v))
|
||||
}
|
||||
|
||||
// SetHandlInst sets HandlInst, Tag 21.
|
||||
func (m NewOrderSingle) SetHandlInst(v enum.HandlInst) {
|
||||
m.Set(field.NewHandlInst(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m NewOrderSingle) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetIOIid sets IOIid, Tag 23.
|
||||
func (m NewOrderSingle) SetIOIid(v string) {
|
||||
m.Set(field.NewIOIid(v))
|
||||
}
|
||||
|
||||
// SetOrderQty sets OrderQty, Tag 38.
|
||||
func (m NewOrderSingle) SetOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetOrdType sets OrdType, Tag 40.
|
||||
func (m NewOrderSingle) SetOrdType(v enum.OrdType) {
|
||||
m.Set(field.NewOrdType(v))
|
||||
}
|
||||
|
||||
// SetPrice sets Price, Tag 44.
|
||||
func (m NewOrderSingle) SetPrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrice(value, scale))
|
||||
}
|
||||
|
||||
// SetRule80A sets Rule80A, Tag 47.
|
||||
func (m NewOrderSingle) SetRule80A(v enum.Rule80A) {
|
||||
m.Set(field.NewRule80A(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m NewOrderSingle) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m NewOrderSingle) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m NewOrderSingle) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m NewOrderSingle) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTimeInForce sets TimeInForce, Tag 59.
|
||||
func (m NewOrderSingle) SetTimeInForce(v enum.TimeInForce) {
|
||||
m.Set(field.NewTimeInForce(v))
|
||||
}
|
||||
|
||||
// SetSettlmntTyp sets SettlmntTyp, Tag 63.
|
||||
func (m NewOrderSingle) SetSettlmntTyp(v enum.SettlmntTyp) {
|
||||
m.Set(field.NewSettlmntTyp(v))
|
||||
}
|
||||
|
||||
// SetFutSettDate sets FutSettDate, Tag 64.
|
||||
func (m NewOrderSingle) SetFutSettDate(v string) {
|
||||
m.Set(field.NewFutSettDate(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m NewOrderSingle) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m NewOrderSingle) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetProcessCode sets ProcessCode, Tag 81.
|
||||
func (m NewOrderSingle) SetProcessCode(v enum.ProcessCode) {
|
||||
m.Set(field.NewProcessCode(v))
|
||||
}
|
||||
|
||||
// SetStopPx sets StopPx, Tag 99.
|
||||
func (m NewOrderSingle) SetStopPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStopPx(value, scale))
|
||||
}
|
||||
|
||||
// SetExDestination sets ExDestination, Tag 100.
|
||||
func (m NewOrderSingle) SetExDestination(v enum.ExDestination) {
|
||||
m.Set(field.NewExDestination(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m NewOrderSingle) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m NewOrderSingle) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m NewOrderSingle) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// SetMinQty sets MinQty, Tag 110.
|
||||
func (m NewOrderSingle) SetMinQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewMinQty(value, scale))
|
||||
}
|
||||
|
||||
// SetMaxFloor sets MaxFloor, Tag 111.
|
||||
func (m NewOrderSingle) SetMaxFloor(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewMaxFloor(value, scale))
|
||||
}
|
||||
|
||||
// SetLocateReqd sets LocateReqd, Tag 114.
|
||||
func (m NewOrderSingle) SetLocateReqd(v bool) {
|
||||
m.Set(field.NewLocateReqd(v))
|
||||
}
|
||||
|
||||
// SetQuoteID sets QuoteID, Tag 117.
|
||||
func (m NewOrderSingle) SetQuoteID(v string) {
|
||||
m.Set(field.NewQuoteID(v))
|
||||
}
|
||||
|
||||
// SetSettlCurrency sets SettlCurrency, Tag 120.
|
||||
func (m NewOrderSingle) SetSettlCurrency(v string) {
|
||||
m.Set(field.NewSettlCurrency(v))
|
||||
}
|
||||
|
||||
// SetForexReq sets ForexReq, Tag 121.
|
||||
func (m NewOrderSingle) SetForexReq(v bool) {
|
||||
m.Set(field.NewForexReq(v))
|
||||
}
|
||||
|
||||
// SetExpireTime sets ExpireTime, Tag 126.
|
||||
func (m NewOrderSingle) SetExpireTime(v time.Time) {
|
||||
m.Set(field.NewExpireTime(v))
|
||||
}
|
||||
|
||||
// SetPrevClosePx sets PrevClosePx, Tag 140.
|
||||
func (m NewOrderSingle) SetPrevClosePx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrevClosePx(value, scale))
|
||||
}
|
||||
|
||||
// GetAccount gets Account, Tag 1.
|
||||
func (m NewOrderSingle) GetAccount() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AccountField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m NewOrderSingle) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCommission gets Commission, Tag 12.
|
||||
func (m NewOrderSingle) GetCommission() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CommissionField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCommType gets CommType, Tag 13.
|
||||
func (m NewOrderSingle) GetCommType() (v enum.CommType, err quickfix.MessageRejectError) {
|
||||
var f field.CommTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m NewOrderSingle) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecInst gets ExecInst, Tag 18.
|
||||
func (m NewOrderSingle) GetExecInst() (v enum.ExecInst, err quickfix.MessageRejectError) {
|
||||
var f field.ExecInstField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetHandlInst gets HandlInst, Tag 21.
|
||||
func (m NewOrderSingle) GetHandlInst() (v enum.HandlInst, err quickfix.MessageRejectError) {
|
||||
var f field.HandlInstField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m NewOrderSingle) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIOIid gets IOIid, Tag 23.
|
||||
func (m NewOrderSingle) GetIOIid() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IOIidField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty gets OrderQty, Tag 38.
|
||||
func (m NewOrderSingle) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrdType gets OrdType, Tag 40.
|
||||
func (m NewOrderSingle) GetOrdType() (v enum.OrdType, err quickfix.MessageRejectError) {
|
||||
var f field.OrdTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrice gets Price, Tag 44.
|
||||
func (m NewOrderSingle) GetPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRule80A gets Rule80A, Tag 47.
|
||||
func (m NewOrderSingle) GetRule80A() (v enum.Rule80A, err quickfix.MessageRejectError) {
|
||||
var f field.Rule80AField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m NewOrderSingle) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m NewOrderSingle) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m NewOrderSingle) 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 NewOrderSingle) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTimeInForce gets TimeInForce, Tag 59.
|
||||
func (m NewOrderSingle) GetTimeInForce() (v enum.TimeInForce, err quickfix.MessageRejectError) {
|
||||
var f field.TimeInForceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlmntTyp gets SettlmntTyp, Tag 63.
|
||||
func (m NewOrderSingle) GetSettlmntTyp() (v enum.SettlmntTyp, err quickfix.MessageRejectError) {
|
||||
var f field.SettlmntTypField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFutSettDate gets FutSettDate, Tag 64.
|
||||
func (m NewOrderSingle) GetFutSettDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.FutSettDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m NewOrderSingle) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m NewOrderSingle) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetProcessCode gets ProcessCode, Tag 81.
|
||||
func (m NewOrderSingle) GetProcessCode() (v enum.ProcessCode, err quickfix.MessageRejectError) {
|
||||
var f field.ProcessCodeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetStopPx gets StopPx, Tag 99.
|
||||
func (m NewOrderSingle) GetStopPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StopPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExDestination gets ExDestination, Tag 100.
|
||||
func (m NewOrderSingle) GetExDestination() (v enum.ExDestination, err quickfix.MessageRejectError) {
|
||||
var f field.ExDestinationField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m NewOrderSingle) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m NewOrderSingle) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m NewOrderSingle) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMinQty gets MinQty, Tag 110.
|
||||
func (m NewOrderSingle) GetMinQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.MinQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaxFloor gets MaxFloor, Tag 111.
|
||||
func (m NewOrderSingle) GetMaxFloor() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.MaxFloorField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetLocateReqd gets LocateReqd, Tag 114.
|
||||
func (m NewOrderSingle) GetLocateReqd() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.LocateReqdField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetQuoteID gets QuoteID, Tag 117.
|
||||
func (m NewOrderSingle) GetQuoteID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.QuoteIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlCurrency gets SettlCurrency, Tag 120.
|
||||
func (m NewOrderSingle) GetSettlCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SettlCurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetForexReq gets ForexReq, Tag 121.
|
||||
func (m NewOrderSingle) GetForexReq() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.ForexReqField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExpireTime gets ExpireTime, Tag 126.
|
||||
func (m NewOrderSingle) GetExpireTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.ExpireTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrevClosePx gets PrevClosePx, Tag 140.
|
||||
func (m NewOrderSingle) GetPrevClosePx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PrevClosePxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasAccount returns true if Account is present, Tag 1.
|
||||
func (m NewOrderSingle) HasAccount() bool {
|
||||
return m.Has(tag.Account)
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m NewOrderSingle) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasCommission returns true if Commission is present, Tag 12.
|
||||
func (m NewOrderSingle) HasCommission() bool {
|
||||
return m.Has(tag.Commission)
|
||||
}
|
||||
|
||||
// HasCommType returns true if CommType is present, Tag 13.
|
||||
func (m NewOrderSingle) HasCommType() bool {
|
||||
return m.Has(tag.CommType)
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m NewOrderSingle) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasExecInst returns true if ExecInst is present, Tag 18.
|
||||
func (m NewOrderSingle) HasExecInst() bool {
|
||||
return m.Has(tag.ExecInst)
|
||||
}
|
||||
|
||||
// HasHandlInst returns true if HandlInst is present, Tag 21.
|
||||
func (m NewOrderSingle) HasHandlInst() bool {
|
||||
return m.Has(tag.HandlInst)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m NewOrderSingle) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasIOIid returns true if IOIid is present, Tag 23.
|
||||
func (m NewOrderSingle) HasIOIid() bool {
|
||||
return m.Has(tag.IOIid)
|
||||
}
|
||||
|
||||
// HasOrderQty returns true if OrderQty is present, Tag 38.
|
||||
func (m NewOrderSingle) HasOrderQty() bool {
|
||||
return m.Has(tag.OrderQty)
|
||||
}
|
||||
|
||||
// HasOrdType returns true if OrdType is present, Tag 40.
|
||||
func (m NewOrderSingle) HasOrdType() bool {
|
||||
return m.Has(tag.OrdType)
|
||||
}
|
||||
|
||||
// HasPrice returns true if Price is present, Tag 44.
|
||||
func (m NewOrderSingle) HasPrice() bool {
|
||||
return m.Has(tag.Price)
|
||||
}
|
||||
|
||||
// HasRule80A returns true if Rule80A is present, Tag 47.
|
||||
func (m NewOrderSingle) HasRule80A() bool {
|
||||
return m.Has(tag.Rule80A)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m NewOrderSingle) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m NewOrderSingle) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m NewOrderSingle) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m NewOrderSingle) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTimeInForce returns true if TimeInForce is present, Tag 59.
|
||||
func (m NewOrderSingle) HasTimeInForce() bool {
|
||||
return m.Has(tag.TimeInForce)
|
||||
}
|
||||
|
||||
// HasSettlmntTyp returns true if SettlmntTyp is present, Tag 63.
|
||||
func (m NewOrderSingle) HasSettlmntTyp() bool {
|
||||
return m.Has(tag.SettlmntTyp)
|
||||
}
|
||||
|
||||
// HasFutSettDate returns true if FutSettDate is present, Tag 64.
|
||||
func (m NewOrderSingle) HasFutSettDate() bool {
|
||||
return m.Has(tag.FutSettDate)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m NewOrderSingle) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m NewOrderSingle) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasProcessCode returns true if ProcessCode is present, Tag 81.
|
||||
func (m NewOrderSingle) HasProcessCode() bool {
|
||||
return m.Has(tag.ProcessCode)
|
||||
}
|
||||
|
||||
// HasStopPx returns true if StopPx is present, Tag 99.
|
||||
func (m NewOrderSingle) HasStopPx() bool {
|
||||
return m.Has(tag.StopPx)
|
||||
}
|
||||
|
||||
// HasExDestination returns true if ExDestination is present, Tag 100.
|
||||
func (m NewOrderSingle) HasExDestination() bool {
|
||||
return m.Has(tag.ExDestination)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m NewOrderSingle) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m NewOrderSingle) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m NewOrderSingle) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
|
||||
// HasMinQty returns true if MinQty is present, Tag 110.
|
||||
func (m NewOrderSingle) HasMinQty() bool {
|
||||
return m.Has(tag.MinQty)
|
||||
}
|
||||
|
||||
// HasMaxFloor returns true if MaxFloor is present, Tag 111.
|
||||
func (m NewOrderSingle) HasMaxFloor() bool {
|
||||
return m.Has(tag.MaxFloor)
|
||||
}
|
||||
|
||||
// HasLocateReqd returns true if LocateReqd is present, Tag 114.
|
||||
func (m NewOrderSingle) HasLocateReqd() bool {
|
||||
return m.Has(tag.LocateReqd)
|
||||
}
|
||||
|
||||
// HasQuoteID returns true if QuoteID is present, Tag 117.
|
||||
func (m NewOrderSingle) HasQuoteID() bool {
|
||||
return m.Has(tag.QuoteID)
|
||||
}
|
||||
|
||||
// HasSettlCurrency returns true if SettlCurrency is present, Tag 120.
|
||||
func (m NewOrderSingle) HasSettlCurrency() bool {
|
||||
return m.Has(tag.SettlCurrency)
|
||||
}
|
||||
|
||||
// HasForexReq returns true if ForexReq is present, Tag 121.
|
||||
func (m NewOrderSingle) HasForexReq() bool {
|
||||
return m.Has(tag.ForexReq)
|
||||
}
|
||||
|
||||
// HasExpireTime returns true if ExpireTime is present, Tag 126.
|
||||
func (m NewOrderSingle) HasExpireTime() bool {
|
||||
return m.Has(tag.ExpireTime)
|
||||
}
|
||||
|
||||
// HasPrevClosePx returns true if PrevClosePx is present, Tag 140.
|
||||
func (m NewOrderSingle) HasPrevClosePx() bool {
|
||||
return m.Has(tag.PrevClosePx)
|
||||
}
|
||||
193
quickfix/gen/fix40/news/News.generated.go
Normal file
193
quickfix/gen/fix40/news/News.generated.go
Normal file
@ -0,0 +1,193 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package news
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// News is the fix40 News type, MsgType = B.
|
||||
type News struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a News from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) News {
|
||||
return News{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m News) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a News initialized with the required fields for News.
|
||||
func New(linesoftext field.LinesOfTextField, text field.TextField) (m News) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("B"))
|
||||
m.Set(linesoftext)
|
||||
m.Set(text)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg News, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "B", r
|
||||
}
|
||||
|
||||
// SetLinesOfText sets LinesOfText, Tag 33.
|
||||
func (m News) SetLinesOfText(v int) {
|
||||
m.Set(field.NewLinesOfText(v))
|
||||
}
|
||||
|
||||
// SetOrigTime sets OrigTime, Tag 42.
|
||||
func (m News) SetOrigTime(v time.Time) {
|
||||
m.Set(field.NewOrigTime(v))
|
||||
}
|
||||
|
||||
// SetRelatdSym sets RelatdSym, Tag 46.
|
||||
func (m News) SetRelatdSym(v string) {
|
||||
m.Set(field.NewRelatdSym(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m News) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetUrgency sets Urgency, Tag 61.
|
||||
func (m News) SetUrgency(v enum.Urgency) {
|
||||
m.Set(field.NewUrgency(v))
|
||||
}
|
||||
|
||||
// SetRawDataLength sets RawDataLength, Tag 95.
|
||||
func (m News) SetRawDataLength(v int) {
|
||||
m.Set(field.NewRawDataLength(v))
|
||||
}
|
||||
|
||||
// SetRawData sets RawData, Tag 96.
|
||||
func (m News) SetRawData(v string) {
|
||||
m.Set(field.NewRawData(v))
|
||||
}
|
||||
|
||||
// GetLinesOfText gets LinesOfText, Tag 33.
|
||||
func (m News) GetLinesOfText() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.LinesOfTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrigTime gets OrigTime, Tag 42.
|
||||
func (m News) GetOrigTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.OrigTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRelatdSym gets RelatdSym, Tag 46.
|
||||
func (m News) GetRelatdSym() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.RelatdSymField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m News) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetUrgency gets Urgency, Tag 61.
|
||||
func (m News) GetUrgency() (v enum.Urgency, err quickfix.MessageRejectError) {
|
||||
var f field.UrgencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRawDataLength gets RawDataLength, Tag 95.
|
||||
func (m News) GetRawDataLength() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.RawDataLengthField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRawData gets RawData, Tag 96.
|
||||
func (m News) GetRawData() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.RawDataField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasLinesOfText returns true if LinesOfText is present, Tag 33.
|
||||
func (m News) HasLinesOfText() bool {
|
||||
return m.Has(tag.LinesOfText)
|
||||
}
|
||||
|
||||
// HasOrigTime returns true if OrigTime is present, Tag 42.
|
||||
func (m News) HasOrigTime() bool {
|
||||
return m.Has(tag.OrigTime)
|
||||
}
|
||||
|
||||
// HasRelatdSym returns true if RelatdSym is present, Tag 46.
|
||||
func (m News) HasRelatdSym() bool {
|
||||
return m.Has(tag.RelatdSym)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m News) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasUrgency returns true if Urgency is present, Tag 61.
|
||||
func (m News) HasUrgency() bool {
|
||||
return m.Has(tag.Urgency)
|
||||
}
|
||||
|
||||
// HasRawDataLength returns true if RawDataLength is present, Tag 95.
|
||||
func (m News) HasRawDataLength() bool {
|
||||
return m.Has(tag.RawDataLength)
|
||||
}
|
||||
|
||||
// HasRawData returns true if RawData is present, Tag 96.
|
||||
func (m News) HasRawData() bool {
|
||||
return m.Has(tag.RawData)
|
||||
}
|
||||
@ -0,0 +1,191 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package ordercancelreject
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// OrderCancelReject is the fix40 OrderCancelReject type, MsgType = 9.
|
||||
type OrderCancelReject struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a OrderCancelReject from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) OrderCancelReject {
|
||||
return OrderCancelReject{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m OrderCancelReject) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a OrderCancelReject initialized with the required fields for OrderCancelReject.
|
||||
func New(orderid field.OrderIDField, clordid field.ClOrdIDField) (m OrderCancelReject) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("9"))
|
||||
m.Set(orderid)
|
||||
m.Set(clordid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg OrderCancelReject, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "9", r
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m OrderCancelReject) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetOrderID sets OrderID, Tag 37.
|
||||
func (m OrderCancelReject) SetOrderID(v string) {
|
||||
m.Set(field.NewOrderID(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m OrderCancelReject) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m OrderCancelReject) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m OrderCancelReject) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetCxlRejReason sets CxlRejReason, Tag 102.
|
||||
func (m OrderCancelReject) SetCxlRejReason(v enum.CxlRejReason) {
|
||||
m.Set(field.NewCxlRejReason(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m OrderCancelReject) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m OrderCancelReject) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderID gets OrderID, Tag 37.
|
||||
func (m OrderCancelReject) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m OrderCancelReject) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m OrderCancelReject) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m OrderCancelReject) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCxlRejReason gets CxlRejReason, Tag 102.
|
||||
func (m OrderCancelReject) GetCxlRejReason() (v enum.CxlRejReason, err quickfix.MessageRejectError) {
|
||||
var f field.CxlRejReasonField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m OrderCancelReject) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m OrderCancelReject) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasOrderID returns true if OrderID is present, Tag 37.
|
||||
func (m OrderCancelReject) HasOrderID() bool {
|
||||
return m.Has(tag.OrderID)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m OrderCancelReject) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m OrderCancelReject) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m OrderCancelReject) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasCxlRejReason returns true if CxlRejReason is present, Tag 102.
|
||||
func (m OrderCancelReject) HasCxlRejReason() bool {
|
||||
return m.Has(tag.CxlRejReason)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m OrderCancelReject) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
@ -0,0 +1,713 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package ordercancelreplacerequest
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// OrderCancelReplaceRequest is the fix40 OrderCancelReplaceRequest type, MsgType = G.
|
||||
type OrderCancelReplaceRequest struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a OrderCancelReplaceRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) OrderCancelReplaceRequest {
|
||||
return OrderCancelReplaceRequest{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m OrderCancelReplaceRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a OrderCancelReplaceRequest initialized with the required fields for OrderCancelReplaceRequest.
|
||||
func New(origclordid field.OrigClOrdIDField, clordid field.ClOrdIDField, handlinst field.HandlInstField, symbol field.SymbolField, side field.SideField, orderqty field.OrderQtyField, ordtype field.OrdTypeField) (m OrderCancelReplaceRequest) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("G"))
|
||||
m.Set(origclordid)
|
||||
m.Set(clordid)
|
||||
m.Set(handlinst)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
m.Set(orderqty)
|
||||
m.Set(ordtype)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg OrderCancelReplaceRequest, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "G", r
|
||||
}
|
||||
|
||||
// SetAccount sets Account, Tag 1.
|
||||
func (m OrderCancelReplaceRequest) SetAccount(v string) {
|
||||
m.Set(field.NewAccount(v))
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m OrderCancelReplaceRequest) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetCommission sets Commission, Tag 12.
|
||||
func (m OrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewCommission(value, scale))
|
||||
}
|
||||
|
||||
// SetCommType sets CommType, Tag 13.
|
||||
func (m OrderCancelReplaceRequest) SetCommType(v enum.CommType) {
|
||||
m.Set(field.NewCommType(v))
|
||||
}
|
||||
|
||||
// SetCurrency sets Currency, Tag 15.
|
||||
func (m OrderCancelReplaceRequest) SetCurrency(v string) {
|
||||
m.Set(field.NewCurrency(v))
|
||||
}
|
||||
|
||||
// SetExecInst sets ExecInst, Tag 18.
|
||||
func (m OrderCancelReplaceRequest) SetExecInst(v enum.ExecInst) {
|
||||
m.Set(field.NewExecInst(v))
|
||||
}
|
||||
|
||||
// SetHandlInst sets HandlInst, Tag 21.
|
||||
func (m OrderCancelReplaceRequest) SetHandlInst(v enum.HandlInst) {
|
||||
m.Set(field.NewHandlInst(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m OrderCancelReplaceRequest) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetOrderID sets OrderID, Tag 37.
|
||||
func (m OrderCancelReplaceRequest) SetOrderID(v string) {
|
||||
m.Set(field.NewOrderID(v))
|
||||
}
|
||||
|
||||
// SetOrderQty sets OrderQty, Tag 38.
|
||||
func (m OrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetOrdType sets OrdType, Tag 40.
|
||||
func (m OrderCancelReplaceRequest) SetOrdType(v enum.OrdType) {
|
||||
m.Set(field.NewOrdType(v))
|
||||
}
|
||||
|
||||
// SetOrigClOrdID sets OrigClOrdID, Tag 41.
|
||||
func (m OrderCancelReplaceRequest) SetOrigClOrdID(v string) {
|
||||
m.Set(field.NewOrigClOrdID(v))
|
||||
}
|
||||
|
||||
// SetPrice sets Price, Tag 44.
|
||||
func (m OrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrice(value, scale))
|
||||
}
|
||||
|
||||
// SetRule80A sets Rule80A, Tag 47.
|
||||
func (m OrderCancelReplaceRequest) SetRule80A(v enum.Rule80A) {
|
||||
m.Set(field.NewRule80A(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m OrderCancelReplaceRequest) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m OrderCancelReplaceRequest) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m OrderCancelReplaceRequest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m OrderCancelReplaceRequest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetTimeInForce sets TimeInForce, Tag 59.
|
||||
func (m OrderCancelReplaceRequest) SetTimeInForce(v enum.TimeInForce) {
|
||||
m.Set(field.NewTimeInForce(v))
|
||||
}
|
||||
|
||||
// SetSettlmntTyp sets SettlmntTyp, Tag 63.
|
||||
func (m OrderCancelReplaceRequest) SetSettlmntTyp(v enum.SettlmntTyp) {
|
||||
m.Set(field.NewSettlmntTyp(v))
|
||||
}
|
||||
|
||||
// SetFutSettDate sets FutSettDate, Tag 64.
|
||||
func (m OrderCancelReplaceRequest) SetFutSettDate(v string) {
|
||||
m.Set(field.NewFutSettDate(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m OrderCancelReplaceRequest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m OrderCancelReplaceRequest) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m OrderCancelReplaceRequest) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetStopPx sets StopPx, Tag 99.
|
||||
func (m OrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewStopPx(value, scale))
|
||||
}
|
||||
|
||||
// SetExDestination sets ExDestination, Tag 100.
|
||||
func (m OrderCancelReplaceRequest) SetExDestination(v enum.ExDestination) {
|
||||
m.Set(field.NewExDestination(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m OrderCancelReplaceRequest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m OrderCancelReplaceRequest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m OrderCancelReplaceRequest) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// SetMinQty sets MinQty, Tag 110.
|
||||
func (m OrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewMinQty(value, scale))
|
||||
}
|
||||
|
||||
// SetMaxFloor sets MaxFloor, Tag 111.
|
||||
func (m OrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewMaxFloor(value, scale))
|
||||
}
|
||||
|
||||
// SetSettlCurrency sets SettlCurrency, Tag 120.
|
||||
func (m OrderCancelReplaceRequest) SetSettlCurrency(v string) {
|
||||
m.Set(field.NewSettlCurrency(v))
|
||||
}
|
||||
|
||||
// SetForexReq sets ForexReq, Tag 121.
|
||||
func (m OrderCancelReplaceRequest) SetForexReq(v bool) {
|
||||
m.Set(field.NewForexReq(v))
|
||||
}
|
||||
|
||||
// SetExpireTime sets ExpireTime, Tag 126.
|
||||
func (m OrderCancelReplaceRequest) SetExpireTime(v time.Time) {
|
||||
m.Set(field.NewExpireTime(v))
|
||||
}
|
||||
|
||||
// GetAccount gets Account, Tag 1.
|
||||
func (m OrderCancelReplaceRequest) GetAccount() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.AccountField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m OrderCancelReplaceRequest) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCommission gets Commission, Tag 12.
|
||||
func (m OrderCancelReplaceRequest) GetCommission() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.CommissionField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCommType gets CommType, Tag 13.
|
||||
func (m OrderCancelReplaceRequest) GetCommType() (v enum.CommType, err quickfix.MessageRejectError) {
|
||||
var f field.CommTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCurrency gets Currency, Tag 15.
|
||||
func (m OrderCancelReplaceRequest) GetCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecInst gets ExecInst, Tag 18.
|
||||
func (m OrderCancelReplaceRequest) GetExecInst() (v enum.ExecInst, err quickfix.MessageRejectError) {
|
||||
var f field.ExecInstField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetHandlInst gets HandlInst, Tag 21.
|
||||
func (m OrderCancelReplaceRequest) GetHandlInst() (v enum.HandlInst, err quickfix.MessageRejectError) {
|
||||
var f field.HandlInstField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m OrderCancelReplaceRequest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderID gets OrderID, Tag 37.
|
||||
func (m OrderCancelReplaceRequest) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty gets OrderQty, Tag 38.
|
||||
func (m OrderCancelReplaceRequest) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrdType gets OrdType, Tag 40.
|
||||
func (m OrderCancelReplaceRequest) GetOrdType() (v enum.OrdType, err quickfix.MessageRejectError) {
|
||||
var f field.OrdTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrigClOrdID gets OrigClOrdID, Tag 41.
|
||||
func (m OrderCancelReplaceRequest) GetOrigClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrigClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrice gets Price, Tag 44.
|
||||
func (m OrderCancelReplaceRequest) GetPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PriceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetRule80A gets Rule80A, Tag 47.
|
||||
func (m OrderCancelReplaceRequest) GetRule80A() (v enum.Rule80A, err quickfix.MessageRejectError) {
|
||||
var f field.Rule80AField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m OrderCancelReplaceRequest) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m OrderCancelReplaceRequest) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m OrderCancelReplaceRequest) 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 OrderCancelReplaceRequest) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetTimeInForce gets TimeInForce, Tag 59.
|
||||
func (m OrderCancelReplaceRequest) GetTimeInForce() (v enum.TimeInForce, err quickfix.MessageRejectError) {
|
||||
var f field.TimeInForceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlmntTyp gets SettlmntTyp, Tag 63.
|
||||
func (m OrderCancelReplaceRequest) GetSettlmntTyp() (v enum.SettlmntTyp, err quickfix.MessageRejectError) {
|
||||
var f field.SettlmntTypField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetFutSettDate gets FutSettDate, Tag 64.
|
||||
func (m OrderCancelReplaceRequest) GetFutSettDate() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.FutSettDateField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m OrderCancelReplaceRequest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m OrderCancelReplaceRequest) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m OrderCancelReplaceRequest) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetStopPx gets StopPx, Tag 99.
|
||||
func (m OrderCancelReplaceRequest) GetStopPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.StopPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExDestination gets ExDestination, Tag 100.
|
||||
func (m OrderCancelReplaceRequest) GetExDestination() (v enum.ExDestination, err quickfix.MessageRejectError) {
|
||||
var f field.ExDestinationField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m OrderCancelReplaceRequest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m OrderCancelReplaceRequest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m OrderCancelReplaceRequest) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMinQty gets MinQty, Tag 110.
|
||||
func (m OrderCancelReplaceRequest) GetMinQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.MinQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetMaxFloor gets MaxFloor, Tag 111.
|
||||
func (m OrderCancelReplaceRequest) GetMaxFloor() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.MaxFloorField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSettlCurrency gets SettlCurrency, Tag 120.
|
||||
func (m OrderCancelReplaceRequest) GetSettlCurrency() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SettlCurrencyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetForexReq gets ForexReq, Tag 121.
|
||||
func (m OrderCancelReplaceRequest) GetForexReq() (v bool, err quickfix.MessageRejectError) {
|
||||
var f field.ForexReqField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExpireTime gets ExpireTime, Tag 126.
|
||||
func (m OrderCancelReplaceRequest) GetExpireTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.ExpireTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasAccount returns true if Account is present, Tag 1.
|
||||
func (m OrderCancelReplaceRequest) HasAccount() bool {
|
||||
return m.Has(tag.Account)
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m OrderCancelReplaceRequest) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasCommission returns true if Commission is present, Tag 12.
|
||||
func (m OrderCancelReplaceRequest) HasCommission() bool {
|
||||
return m.Has(tag.Commission)
|
||||
}
|
||||
|
||||
// HasCommType returns true if CommType is present, Tag 13.
|
||||
func (m OrderCancelReplaceRequest) HasCommType() bool {
|
||||
return m.Has(tag.CommType)
|
||||
}
|
||||
|
||||
// HasCurrency returns true if Currency is present, Tag 15.
|
||||
func (m OrderCancelReplaceRequest) HasCurrency() bool {
|
||||
return m.Has(tag.Currency)
|
||||
}
|
||||
|
||||
// HasExecInst returns true if ExecInst is present, Tag 18.
|
||||
func (m OrderCancelReplaceRequest) HasExecInst() bool {
|
||||
return m.Has(tag.ExecInst)
|
||||
}
|
||||
|
||||
// HasHandlInst returns true if HandlInst is present, Tag 21.
|
||||
func (m OrderCancelReplaceRequest) HasHandlInst() bool {
|
||||
return m.Has(tag.HandlInst)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m OrderCancelReplaceRequest) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasOrderID returns true if OrderID is present, Tag 37.
|
||||
func (m OrderCancelReplaceRequest) HasOrderID() bool {
|
||||
return m.Has(tag.OrderID)
|
||||
}
|
||||
|
||||
// HasOrderQty returns true if OrderQty is present, Tag 38.
|
||||
func (m OrderCancelReplaceRequest) HasOrderQty() bool {
|
||||
return m.Has(tag.OrderQty)
|
||||
}
|
||||
|
||||
// HasOrdType returns true if OrdType is present, Tag 40.
|
||||
func (m OrderCancelReplaceRequest) HasOrdType() bool {
|
||||
return m.Has(tag.OrdType)
|
||||
}
|
||||
|
||||
// HasOrigClOrdID returns true if OrigClOrdID is present, Tag 41.
|
||||
func (m OrderCancelReplaceRequest) HasOrigClOrdID() bool {
|
||||
return m.Has(tag.OrigClOrdID)
|
||||
}
|
||||
|
||||
// HasPrice returns true if Price is present, Tag 44.
|
||||
func (m OrderCancelReplaceRequest) HasPrice() bool {
|
||||
return m.Has(tag.Price)
|
||||
}
|
||||
|
||||
// HasRule80A returns true if Rule80A is present, Tag 47.
|
||||
func (m OrderCancelReplaceRequest) HasRule80A() bool {
|
||||
return m.Has(tag.Rule80A)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m OrderCancelReplaceRequest) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m OrderCancelReplaceRequest) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m OrderCancelReplaceRequest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m OrderCancelReplaceRequest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasTimeInForce returns true if TimeInForce is present, Tag 59.
|
||||
func (m OrderCancelReplaceRequest) HasTimeInForce() bool {
|
||||
return m.Has(tag.TimeInForce)
|
||||
}
|
||||
|
||||
// HasSettlmntTyp returns true if SettlmntTyp is present, Tag 63.
|
||||
func (m OrderCancelReplaceRequest) HasSettlmntTyp() bool {
|
||||
return m.Has(tag.SettlmntTyp)
|
||||
}
|
||||
|
||||
// HasFutSettDate returns true if FutSettDate is present, Tag 64.
|
||||
func (m OrderCancelReplaceRequest) HasFutSettDate() bool {
|
||||
return m.Has(tag.FutSettDate)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m OrderCancelReplaceRequest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m OrderCancelReplaceRequest) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m OrderCancelReplaceRequest) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasStopPx returns true if StopPx is present, Tag 99.
|
||||
func (m OrderCancelReplaceRequest) HasStopPx() bool {
|
||||
return m.Has(tag.StopPx)
|
||||
}
|
||||
|
||||
// HasExDestination returns true if ExDestination is present, Tag 100.
|
||||
func (m OrderCancelReplaceRequest) HasExDestination() bool {
|
||||
return m.Has(tag.ExDestination)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m OrderCancelReplaceRequest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m OrderCancelReplaceRequest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m OrderCancelReplaceRequest) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
|
||||
// HasMinQty returns true if MinQty is present, Tag 110.
|
||||
func (m OrderCancelReplaceRequest) HasMinQty() bool {
|
||||
return m.Has(tag.MinQty)
|
||||
}
|
||||
|
||||
// HasMaxFloor returns true if MaxFloor is present, Tag 111.
|
||||
func (m OrderCancelReplaceRequest) HasMaxFloor() bool {
|
||||
return m.Has(tag.MaxFloor)
|
||||
}
|
||||
|
||||
// HasSettlCurrency returns true if SettlCurrency is present, Tag 120.
|
||||
func (m OrderCancelReplaceRequest) HasSettlCurrency() bool {
|
||||
return m.Has(tag.SettlCurrency)
|
||||
}
|
||||
|
||||
// HasForexReq returns true if ForexReq is present, Tag 121.
|
||||
func (m OrderCancelReplaceRequest) HasForexReq() bool {
|
||||
return m.Has(tag.ForexReq)
|
||||
}
|
||||
|
||||
// HasExpireTime returns true if ExpireTime is present, Tag 126.
|
||||
func (m OrderCancelReplaceRequest) HasExpireTime() bool {
|
||||
return m.Has(tag.ExpireTime)
|
||||
}
|
||||
@ -0,0 +1,368 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package ordercancelrequest
|
||||
|
||||
import (
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// OrderCancelRequest is the fix40 OrderCancelRequest type, MsgType = F.
|
||||
type OrderCancelRequest struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a OrderCancelRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) OrderCancelRequest {
|
||||
return OrderCancelRequest{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m OrderCancelRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a OrderCancelRequest initialized with the required fields for OrderCancelRequest.
|
||||
func New(origclordid field.OrigClOrdIDField, clordid field.ClOrdIDField, cxltype field.CxlTypeField, symbol field.SymbolField, side field.SideField, orderqty field.OrderQtyField) (m OrderCancelRequest) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("F"))
|
||||
m.Set(origclordid)
|
||||
m.Set(clordid)
|
||||
m.Set(cxltype)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
m.Set(orderqty)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg OrderCancelRequest, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "F", r
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m OrderCancelRequest) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m OrderCancelRequest) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetOrderID sets OrderID, Tag 37.
|
||||
func (m OrderCancelRequest) SetOrderID(v string) {
|
||||
m.Set(field.NewOrderID(v))
|
||||
}
|
||||
|
||||
// SetOrderQty sets OrderQty, Tag 38.
|
||||
func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetOrigClOrdID sets OrigClOrdID, Tag 41.
|
||||
func (m OrderCancelRequest) SetOrigClOrdID(v string) {
|
||||
m.Set(field.NewOrigClOrdID(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m OrderCancelRequest) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m OrderCancelRequest) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m OrderCancelRequest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m OrderCancelRequest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m OrderCancelRequest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m OrderCancelRequest) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m OrderCancelRequest) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m OrderCancelRequest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m OrderCancelRequest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m OrderCancelRequest) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// SetCxlType sets CxlType, Tag 125.
|
||||
func (m OrderCancelRequest) SetCxlType(v enum.CxlType) {
|
||||
m.Set(field.NewCxlType(v))
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m OrderCancelRequest) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m OrderCancelRequest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderID gets OrderID, Tag 37.
|
||||
func (m OrderCancelRequest) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty gets OrderQty, Tag 38.
|
||||
func (m OrderCancelRequest) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrigClOrdID gets OrigClOrdID, Tag 41.
|
||||
func (m OrderCancelRequest) GetOrigClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrigClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m OrderCancelRequest) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m OrderCancelRequest) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m OrderCancelRequest) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m OrderCancelRequest) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m OrderCancelRequest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m OrderCancelRequest) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m OrderCancelRequest) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m OrderCancelRequest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m OrderCancelRequest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m OrderCancelRequest) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetCxlType gets CxlType, Tag 125.
|
||||
func (m OrderCancelRequest) GetCxlType() (v enum.CxlType, err quickfix.MessageRejectError) {
|
||||
var f field.CxlTypeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m OrderCancelRequest) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m OrderCancelRequest) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasOrderID returns true if OrderID is present, Tag 37.
|
||||
func (m OrderCancelRequest) HasOrderID() bool {
|
||||
return m.Has(tag.OrderID)
|
||||
}
|
||||
|
||||
// HasOrderQty returns true if OrderQty is present, Tag 38.
|
||||
func (m OrderCancelRequest) HasOrderQty() bool {
|
||||
return m.Has(tag.OrderQty)
|
||||
}
|
||||
|
||||
// HasOrigClOrdID returns true if OrigClOrdID is present, Tag 41.
|
||||
func (m OrderCancelRequest) HasOrigClOrdID() bool {
|
||||
return m.Has(tag.OrigClOrdID)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m OrderCancelRequest) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m OrderCancelRequest) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m OrderCancelRequest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m OrderCancelRequest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m OrderCancelRequest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m OrderCancelRequest) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m OrderCancelRequest) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m OrderCancelRequest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m OrderCancelRequest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m OrderCancelRequest) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
|
||||
// HasCxlType returns true if CxlType is present, Tag 125.
|
||||
func (m OrderCancelRequest) HasCxlType() bool {
|
||||
return m.Has(tag.CxlType)
|
||||
}
|
||||
@ -0,0 +1,230 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package orderstatusrequest
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// OrderStatusRequest is the fix40 OrderStatusRequest type, MsgType = H.
|
||||
type OrderStatusRequest struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a OrderStatusRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) OrderStatusRequest {
|
||||
return OrderStatusRequest{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m OrderStatusRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a OrderStatusRequest initialized with the required fields for OrderStatusRequest.
|
||||
func New(clordid field.ClOrdIDField, symbol field.SymbolField, side field.SideField) (m OrderStatusRequest) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("H"))
|
||||
m.Set(clordid)
|
||||
m.Set(symbol)
|
||||
m.Set(side)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg OrderStatusRequest, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "H", r
|
||||
}
|
||||
|
||||
// SetClOrdID sets ClOrdID, Tag 11.
|
||||
func (m OrderStatusRequest) SetClOrdID(v string) {
|
||||
m.Set(field.NewClOrdID(v))
|
||||
}
|
||||
|
||||
// SetOrderID sets OrderID, Tag 37.
|
||||
func (m OrderStatusRequest) SetOrderID(v string) {
|
||||
m.Set(field.NewOrderID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m OrderStatusRequest) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m OrderStatusRequest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m OrderStatusRequest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetExecBroker sets ExecBroker, Tag 76.
|
||||
func (m OrderStatusRequest) SetExecBroker(v string) {
|
||||
m.Set(field.NewExecBroker(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m OrderStatusRequest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m OrderStatusRequest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetClientID sets ClientID, Tag 109.
|
||||
func (m OrderStatusRequest) SetClientID(v string) {
|
||||
m.Set(field.NewClientID(v))
|
||||
}
|
||||
|
||||
// GetClOrdID gets ClOrdID, Tag 11.
|
||||
func (m OrderStatusRequest) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClOrdIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderID gets OrderID, Tag 37.
|
||||
func (m OrderStatusRequest) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.OrderIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m OrderStatusRequest) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m OrderStatusRequest) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m OrderStatusRequest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetExecBroker gets ExecBroker, Tag 76.
|
||||
func (m OrderStatusRequest) GetExecBroker() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ExecBrokerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m OrderStatusRequest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m OrderStatusRequest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetClientID gets ClientID, Tag 109.
|
||||
func (m OrderStatusRequest) GetClientID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ClientIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
||||
func (m OrderStatusRequest) HasClOrdID() bool {
|
||||
return m.Has(tag.ClOrdID)
|
||||
}
|
||||
|
||||
// HasOrderID returns true if OrderID is present, Tag 37.
|
||||
func (m OrderStatusRequest) HasOrderID() bool {
|
||||
return m.Has(tag.OrderID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m OrderStatusRequest) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m OrderStatusRequest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m OrderStatusRequest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasExecBroker returns true if ExecBroker is present, Tag 76.
|
||||
func (m OrderStatusRequest) HasExecBroker() bool {
|
||||
return m.Has(tag.ExecBroker)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m OrderStatusRequest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m OrderStatusRequest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasClientID returns true if ClientID is present, Tag 109.
|
||||
func (m OrderStatusRequest) HasClientID() bool {
|
||||
return m.Has(tag.ClientID)
|
||||
}
|
||||
310
quickfix/gen/fix40/quote/Quote.generated.go
Normal file
310
quickfix/gen/fix40/quote/Quote.generated.go
Normal file
@ -0,0 +1,310 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package quote
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Quote is the fix40 Quote type, MsgType = S.
|
||||
type Quote struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Quote from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Quote {
|
||||
return Quote{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m Quote) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a Quote initialized with the required fields for Quote.
|
||||
func New(quoteid field.QuoteIDField, symbol field.SymbolField, bidpx field.BidPxField) (m Quote) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("S"))
|
||||
m.Set(quoteid)
|
||||
m.Set(symbol)
|
||||
m.Set(bidpx)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Quote, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "S", r
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m Quote) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m Quote) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m Quote) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetValidUntilTime sets ValidUntilTime, Tag 62.
|
||||
func (m Quote) SetValidUntilTime(v time.Time) {
|
||||
m.Set(field.NewValidUntilTime(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m Quote) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m Quote) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m Quote) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetQuoteID sets QuoteID, Tag 117.
|
||||
func (m Quote) SetQuoteID(v string) {
|
||||
m.Set(field.NewQuoteID(v))
|
||||
}
|
||||
|
||||
// SetQuoteReqID sets QuoteReqID, Tag 131.
|
||||
func (m Quote) SetQuoteReqID(v string) {
|
||||
m.Set(field.NewQuoteReqID(v))
|
||||
}
|
||||
|
||||
// SetBidPx sets BidPx, Tag 132.
|
||||
func (m Quote) SetBidPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewBidPx(value, scale))
|
||||
}
|
||||
|
||||
// SetOfferPx sets OfferPx, Tag 133.
|
||||
func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOfferPx(value, scale))
|
||||
}
|
||||
|
||||
// SetBidSize sets BidSize, Tag 134.
|
||||
func (m Quote) SetBidSize(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewBidSize(value, scale))
|
||||
}
|
||||
|
||||
// SetOfferSize sets OfferSize, Tag 135.
|
||||
func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOfferSize(value, scale))
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m Quote) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m Quote) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m Quote) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetValidUntilTime gets ValidUntilTime, Tag 62.
|
||||
func (m Quote) GetValidUntilTime() (v time.Time, err quickfix.MessageRejectError) {
|
||||
var f field.ValidUntilTimeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m Quote) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m Quote) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m Quote) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetQuoteID gets QuoteID, Tag 117.
|
||||
func (m Quote) GetQuoteID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.QuoteIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetQuoteReqID gets QuoteReqID, Tag 131.
|
||||
func (m Quote) GetQuoteReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.QuoteReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBidPx gets BidPx, Tag 132.
|
||||
func (m Quote) GetBidPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.BidPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOfferPx gets OfferPx, Tag 133.
|
||||
func (m Quote) GetOfferPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OfferPxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetBidSize gets BidSize, Tag 134.
|
||||
func (m Quote) GetBidSize() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.BidSizeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOfferSize gets OfferSize, Tag 135.
|
||||
func (m Quote) GetOfferSize() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OfferSizeField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m Quote) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m Quote) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m Quote) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasValidUntilTime returns true if ValidUntilTime is present, Tag 62.
|
||||
func (m Quote) HasValidUntilTime() bool {
|
||||
return m.Has(tag.ValidUntilTime)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m Quote) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m Quote) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m Quote) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasQuoteID returns true if QuoteID is present, Tag 117.
|
||||
func (m Quote) HasQuoteID() bool {
|
||||
return m.Has(tag.QuoteID)
|
||||
}
|
||||
|
||||
// HasQuoteReqID returns true if QuoteReqID is present, Tag 131.
|
||||
func (m Quote) HasQuoteReqID() bool {
|
||||
return m.Has(tag.QuoteReqID)
|
||||
}
|
||||
|
||||
// HasBidPx returns true if BidPx is present, Tag 132.
|
||||
func (m Quote) HasBidPx() bool {
|
||||
return m.Has(tag.BidPx)
|
||||
}
|
||||
|
||||
// HasOfferPx returns true if OfferPx is present, Tag 133.
|
||||
func (m Quote) HasOfferPx() bool {
|
||||
return m.Has(tag.OfferPx)
|
||||
}
|
||||
|
||||
// HasBidSize returns true if BidSize is present, Tag 134.
|
||||
func (m Quote) HasBidSize() bool {
|
||||
return m.Has(tag.BidSize)
|
||||
}
|
||||
|
||||
// HasOfferSize returns true if OfferSize is present, Tag 135.
|
||||
func (m Quote) HasOfferSize() bool {
|
||||
return m.Has(tag.OfferSize)
|
||||
}
|
||||
250
quickfix/gen/fix40/quoterequest/QuoteRequest.generated.go
Normal file
250
quickfix/gen/fix40/quoterequest/QuoteRequest.generated.go
Normal file
@ -0,0 +1,250 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package quoterequest
|
||||
|
||||
import (
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/enum"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// QuoteRequest is the fix40 QuoteRequest type, MsgType = R.
|
||||
type QuoteRequest struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a QuoteRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) QuoteRequest {
|
||||
return QuoteRequest{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.Trailer{Trailer: &m.Trailer},
|
||||
Message: m,
|
||||
}
|
||||
}
|
||||
|
||||
// ToMessage returns a quickfix.Message instance.
|
||||
func (m QuoteRequest) ToMessage() *quickfix.Message {
|
||||
return m.Message
|
||||
}
|
||||
|
||||
// New returns a QuoteRequest initialized with the required fields for QuoteRequest.
|
||||
func New(quotereqid field.QuoteReqIDField, symbol field.SymbolField) (m QuoteRequest) {
|
||||
m.Message = quickfix.NewMessage()
|
||||
m.Header = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("R"))
|
||||
m.Set(quotereqid)
|
||||
m.Set(symbol)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg QuoteRequest, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "R", r
|
||||
}
|
||||
|
||||
// SetIDSource sets IDSource, Tag 22.
|
||||
func (m QuoteRequest) SetIDSource(v enum.IDSource) {
|
||||
m.Set(field.NewIDSource(v))
|
||||
}
|
||||
|
||||
// SetOrderQty sets OrderQty, Tag 38.
|
||||
func (m QuoteRequest) SetOrderQty(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewOrderQty(value, scale))
|
||||
}
|
||||
|
||||
// SetSecurityID sets SecurityID, Tag 48.
|
||||
func (m QuoteRequest) SetSecurityID(v string) {
|
||||
m.Set(field.NewSecurityID(v))
|
||||
}
|
||||
|
||||
// SetSide sets Side, Tag 54.
|
||||
func (m QuoteRequest) SetSide(v enum.Side) {
|
||||
m.Set(field.NewSide(v))
|
||||
}
|
||||
|
||||
// SetSymbol sets Symbol, Tag 55.
|
||||
func (m QuoteRequest) SetSymbol(v string) {
|
||||
m.Set(field.NewSymbol(v))
|
||||
}
|
||||
|
||||
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
||||
func (m QuoteRequest) SetSymbolSfx(v enum.SymbolSfx) {
|
||||
m.Set(field.NewSymbolSfx(v))
|
||||
}
|
||||
|
||||
// SetIssuer sets Issuer, Tag 106.
|
||||
func (m QuoteRequest) SetIssuer(v string) {
|
||||
m.Set(field.NewIssuer(v))
|
||||
}
|
||||
|
||||
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
||||
func (m QuoteRequest) SetSecurityDesc(v string) {
|
||||
m.Set(field.NewSecurityDesc(v))
|
||||
}
|
||||
|
||||
// SetQuoteReqID sets QuoteReqID, Tag 131.
|
||||
func (m QuoteRequest) SetQuoteReqID(v string) {
|
||||
m.Set(field.NewQuoteReqID(v))
|
||||
}
|
||||
|
||||
// SetPrevClosePx sets PrevClosePx, Tag 140.
|
||||
func (m QuoteRequest) SetPrevClosePx(value decimal.Decimal, scale int32) {
|
||||
m.Set(field.NewPrevClosePx(value, scale))
|
||||
}
|
||||
|
||||
// GetIDSource gets IDSource, Tag 22.
|
||||
func (m QuoteRequest) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
|
||||
var f field.IDSourceField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetOrderQty gets OrderQty, Tag 38.
|
||||
func (m QuoteRequest) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.OrderQtyField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityID gets SecurityID, Tag 48.
|
||||
func (m QuoteRequest) GetSecurityID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSide gets Side, Tag 54.
|
||||
func (m QuoteRequest) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
|
||||
var f field.SideField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbol gets Symbol, Tag 55.
|
||||
func (m QuoteRequest) GetSymbol() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSymbolSfx gets SymbolSfx, Tag 65.
|
||||
func (m QuoteRequest) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
|
||||
var f field.SymbolSfxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetIssuer gets Issuer, Tag 106.
|
||||
func (m QuoteRequest) GetIssuer() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.IssuerField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityDesc gets SecurityDesc, Tag 107.
|
||||
func (m QuoteRequest) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SecurityDescField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetQuoteReqID gets QuoteReqID, Tag 131.
|
||||
func (m QuoteRequest) GetQuoteReqID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.QuoteReqIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetPrevClosePx gets PrevClosePx, Tag 140.
|
||||
func (m QuoteRequest) GetPrevClosePx() (v decimal.Decimal, err quickfix.MessageRejectError) {
|
||||
var f field.PrevClosePxField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasIDSource returns true if IDSource is present, Tag 22.
|
||||
func (m QuoteRequest) HasIDSource() bool {
|
||||
return m.Has(tag.IDSource)
|
||||
}
|
||||
|
||||
// HasOrderQty returns true if OrderQty is present, Tag 38.
|
||||
func (m QuoteRequest) HasOrderQty() bool {
|
||||
return m.Has(tag.OrderQty)
|
||||
}
|
||||
|
||||
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
||||
func (m QuoteRequest) HasSecurityID() bool {
|
||||
return m.Has(tag.SecurityID)
|
||||
}
|
||||
|
||||
// HasSide returns true if Side is present, Tag 54.
|
||||
func (m QuoteRequest) HasSide() bool {
|
||||
return m.Has(tag.Side)
|
||||
}
|
||||
|
||||
// HasSymbol returns true if Symbol is present, Tag 55.
|
||||
func (m QuoteRequest) HasSymbol() bool {
|
||||
return m.Has(tag.Symbol)
|
||||
}
|
||||
|
||||
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
||||
func (m QuoteRequest) HasSymbolSfx() bool {
|
||||
return m.Has(tag.SymbolSfx)
|
||||
}
|
||||
|
||||
// HasIssuer returns true if Issuer is present, Tag 106.
|
||||
func (m QuoteRequest) HasIssuer() bool {
|
||||
return m.Has(tag.Issuer)
|
||||
}
|
||||
|
||||
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
||||
func (m QuoteRequest) HasSecurityDesc() bool {
|
||||
return m.Has(tag.SecurityDesc)
|
||||
}
|
||||
|
||||
// HasQuoteReqID returns true if QuoteReqID is present, Tag 131.
|
||||
func (m QuoteRequest) HasQuoteReqID() bool {
|
||||
return m.Has(tag.QuoteReqID)
|
||||
}
|
||||
|
||||
// HasPrevClosePx returns true if PrevClosePx is present, Tag 140.
|
||||
func (m QuoteRequest) HasPrevClosePx() bool {
|
||||
return m.Has(tag.PrevClosePx)
|
||||
}
|
||||
94
quickfix/gen/fix40/reject/Reject.generated.go
Normal file
94
quickfix/gen/fix40/reject/Reject.generated.go
Normal file
@ -0,0 +1,94 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package reject
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Reject is the fix40 Reject type, MsgType = 3.
|
||||
type Reject struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a Reject from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) Reject {
|
||||
return Reject{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.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 = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("3"))
|
||||
m.Set(refseqnum)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg Reject, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "3", r
|
||||
}
|
||||
|
||||
// SetRefSeqNum sets RefSeqNum, Tag 45.
|
||||
func (m Reject) SetRefSeqNum(v int) {
|
||||
m.Set(field.NewRefSeqNum(v))
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m Reject) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// GetRefSeqNum gets RefSeqNum, Tag 45.
|
||||
func (m Reject) GetRefSeqNum() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.RefSeqNumField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m Reject) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasRefSeqNum returns true if RefSeqNum is present, Tag 45.
|
||||
func (m Reject) HasRefSeqNum() bool {
|
||||
return m.Has(tag.RefSeqNum)
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m Reject) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
95
quickfix/gen/fix40/resendrequest/ResendRequest.generated.go
Normal file
95
quickfix/gen/fix40/resendrequest/ResendRequest.generated.go
Normal file
@ -0,0 +1,95 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package resendrequest
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ResendRequest is the fix40 ResendRequest type, MsgType = 2.
|
||||
type ResendRequest struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ResendRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ResendRequest {
|
||||
return ResendRequest{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.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 = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("2"))
|
||||
m.Set(beginseqno)
|
||||
m.Set(endseqno)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg ResendRequest, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "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)
|
||||
}
|
||||
94
quickfix/gen/fix40/sequencereset/SequenceReset.generated.go
Normal file
94
quickfix/gen/fix40/sequencereset/SequenceReset.generated.go
Normal file
@ -0,0 +1,94 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package sequencereset
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// SequenceReset is the fix40 SequenceReset type, MsgType = 4.
|
||||
type SequenceReset struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a SequenceReset from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) SequenceReset {
|
||||
return SequenceReset{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.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 = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("4"))
|
||||
m.Set(newseqno)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg SequenceReset, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "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)
|
||||
}
|
||||
75
quickfix/gen/fix40/testrequest/TestRequest.generated.go
Normal file
75
quickfix/gen/fix40/testrequest/TestRequest.generated.go
Normal file
@ -0,0 +1,75 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package testrequest
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/fix40"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// TestRequest is the fix40 TestRequest type, MsgType = 1.
|
||||
type TestRequest struct {
|
||||
fix40.Header
|
||||
*quickfix.Body
|
||||
fix40.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a TestRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) TestRequest {
|
||||
return TestRequest{
|
||||
Header: fix40.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix40.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 = fix40.NewHeader(&m.Message.Header)
|
||||
m.Body = &m.Message.Body
|
||||
m.Trailer.Trailer = &m.Message.Trailer
|
||||
|
||||
m.Header.Set(field.NewMsgType("1"))
|
||||
m.Set(testreqid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// A RouteOut is the callback type that should be implemented for routing Message.
|
||||
type RouteOut func(msg TestRequest, sessionID quickfix.SessionID) quickfix.MessageRejectError
|
||||
|
||||
// Route returns the beginstring, message type, and MessageRoute for this Message type.
|
||||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
|
||||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
|
||||
return router(FromMessage(msg), sessionID)
|
||||
}
|
||||
return "FIX.4.0", "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)
|
||||
}
|
||||
70
quickfix/gen/fix40/trailer.generated.go
Normal file
70
quickfix/gen/fix40/trailer.generated.go
Normal file
@ -0,0 +1,70 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package fix40
|
||||
|
||||
import (
|
||||
"github.com/quickfixgo/quickfix"
|
||||
"github.com/quickfixgo/quickfix/gen/field"
|
||||
"github.com/quickfixgo/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// Trailer is the fix40 Trailer type.
|
||||
type Trailer struct {
|
||||
*quickfix.Trailer
|
||||
}
|
||||
|
||||
// SetCheckSum sets CheckSum, Tag 10.
|
||||
func (t Trailer) SetCheckSum(v string) {
|
||||
t.Set(field.NewCheckSum(v))
|
||||
}
|
||||
|
||||
// SetSignature sets Signature, Tag 89.
|
||||
func (t Trailer) SetSignature(v string) {
|
||||
t.Set(field.NewSignature(v))
|
||||
}
|
||||
|
||||
// SetSignatureLength sets SignatureLength, Tag 93.
|
||||
func (t Trailer) SetSignatureLength(v int) {
|
||||
t.Set(field.NewSignatureLength(v))
|
||||
}
|
||||
|
||||
// GetCheckSum gets CheckSum, Tag 10.
|
||||
func (t Trailer) GetCheckSum() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.CheckSumField
|
||||
if err = t.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSignature gets Signature, Tag 89.
|
||||
func (t Trailer) GetSignature() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.SignatureField
|
||||
if err = t.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetSignatureLength gets SignatureLength, Tag 93.
|
||||
func (t Trailer) GetSignatureLength() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.SignatureLengthField
|
||||
if err = t.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasCheckSum returns true if CheckSum is present, Tag 10.
|
||||
func (t Trailer) HasCheckSum() bool {
|
||||
return t.Has(tag.CheckSum)
|
||||
}
|
||||
|
||||
// HasSignature returns true if Signature is present, Tag 89.
|
||||
func (t Trailer) HasSignature() bool {
|
||||
return t.Has(tag.Signature)
|
||||
}
|
||||
|
||||
// HasSignatureLength returns true if SignatureLength is present, Tag 93.
|
||||
func (t Trailer) HasSignatureLength() bool {
|
||||
return t.Has(tag.SignatureLength)
|
||||
}
|
||||
Reference in New Issue
Block a user