adding quickfix
This commit is contained in:
@ -0,0 +1,132 @@
|
||||
// Code generated by quickfix. DO NOT EDIT.
|
||||
package liststatusrequest
|
||||
|
||||
import (
|
||||
"quantex.com/qfixdpl/quickfix"
|
||||
"quantex.com/qfixdpl/quickfix/gen/field"
|
||||
"quantex.com/qfixdpl/quickfix/gen/fix43"
|
||||
"quantex.com/qfixdpl/quickfix/gen/tag"
|
||||
)
|
||||
|
||||
// ListStatusRequest is the fix43 ListStatusRequest type, MsgType = M.
|
||||
type ListStatusRequest struct {
|
||||
fix43.Header
|
||||
*quickfix.Body
|
||||
fix43.Trailer
|
||||
Message *quickfix.Message
|
||||
}
|
||||
|
||||
// FromMessage creates a ListStatusRequest from a quickfix.Message instance.
|
||||
func FromMessage(m *quickfix.Message) ListStatusRequest {
|
||||
return ListStatusRequest{
|
||||
Header: fix43.Header{Header: &m.Header},
|
||||
Body: &m.Body,
|
||||
Trailer: fix43.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 = fix43.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.3", "M", r
|
||||
}
|
||||
|
||||
// SetText sets Text, Tag 58.
|
||||
func (m ListStatusRequest) SetText(v string) {
|
||||
m.Set(field.NewText(v))
|
||||
}
|
||||
|
||||
// SetListID sets ListID, Tag 66.
|
||||
func (m ListStatusRequest) SetListID(v string) {
|
||||
m.Set(field.NewListID(v))
|
||||
}
|
||||
|
||||
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
||||
func (m ListStatusRequest) SetEncodedTextLen(v int) {
|
||||
m.Set(field.NewEncodedTextLen(v))
|
||||
}
|
||||
|
||||
// SetEncodedText sets EncodedText, Tag 355.
|
||||
func (m ListStatusRequest) SetEncodedText(v string) {
|
||||
m.Set(field.NewEncodedText(v))
|
||||
}
|
||||
|
||||
// GetText gets Text, Tag 58.
|
||||
func (m ListStatusRequest) GetText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.TextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetListID gets ListID, Tag 66.
|
||||
func (m ListStatusRequest) GetListID() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.ListIDField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
||||
func (m ListStatusRequest) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextLenField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncodedText gets EncodedText, Tag 355.
|
||||
func (m ListStatusRequest) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
||||
var f field.EncodedTextField
|
||||
if err = m.Get(&f); err == nil {
|
||||
v = f.Value()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// HasText returns true if Text is present, Tag 58.
|
||||
func (m ListStatusRequest) HasText() bool {
|
||||
return m.Has(tag.Text)
|
||||
}
|
||||
|
||||
// HasListID returns true if ListID is present, Tag 66.
|
||||
func (m ListStatusRequest) HasListID() bool {
|
||||
return m.Has(tag.ListID)
|
||||
}
|
||||
|
||||
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
||||
func (m ListStatusRequest) HasEncodedTextLen() bool {
|
||||
return m.Has(tag.EncodedTextLen)
|
||||
}
|
||||
|
||||
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
||||
func (m ListStatusRequest) HasEncodedText() bool {
|
||||
return m.Has(tag.EncodedText)
|
||||
}
|
||||
Reference in New Issue
Block a user