forked from quickfixgo/quickfix
/
TradingSessionListRequest.generated.go
207 lines (170 loc) · 6.61 KB
/
TradingSessionListRequest.generated.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
package tradingsessionlistrequest
import (
"time"
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/field"
"github.com/quickfixgo/quickfix/fixt11"
"github.com/quickfixgo/quickfix/tag"
)
//TradingSessionListRequest is the fix50sp1 TradingSessionListRequest type, MsgType = BI
type TradingSessionListRequest struct {
fixt11.Header
quickfix.Body
fixt11.Trailer
//ReceiveTime is the time that this message was read from the socket connection
ReceiveTime time.Time
}
//FromMessage creates a TradingSessionListRequest from a quickfix.Message instance
func FromMessage(m quickfix.Message) TradingSessionListRequest {
return TradingSessionListRequest{
Header: fixt11.Header{Header: m.Header},
Body: m.Body,
Trailer: fixt11.Trailer{Trailer: m.Trailer},
ReceiveTime: m.ReceiveTime,
}
}
//ToMessage returns a quickfix.Message instance
func (m TradingSessionListRequest) ToMessage() quickfix.Message {
return quickfix.Message{
Header: m.Header.Header,
Body: m.Body,
Trailer: m.Trailer.Trailer,
ReceiveTime: m.ReceiveTime,
}
}
//New returns a TradingSessionListRequest initialized with the required fields for TradingSessionListRequest
func New(tradsesreqid field.TradSesReqIDField, subscriptionrequesttype field.SubscriptionRequestTypeField) (m TradingSessionListRequest) {
m.Header = fixt11.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("BI"))
m.Set(tradsesreqid)
m.Set(subscriptionrequesttype)
return
}
//A RouteOut is the callback type that should be implemented for routing Message
type RouteOut func(msg TradingSessionListRequest, 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 "8", "BI", r
}
//SetSecurityExchange sets SecurityExchange, Tag 207
func (m TradingSessionListRequest) SetSecurityExchange(v string) {
m.Set(field.NewSecurityExchange(v))
}
//SetSubscriptionRequestType sets SubscriptionRequestType, Tag 263
func (m TradingSessionListRequest) SetSubscriptionRequestType(v string) {
m.Set(field.NewSubscriptionRequestType(v))
}
//SetTradSesReqID sets TradSesReqID, Tag 335
func (m TradingSessionListRequest) SetTradSesReqID(v string) {
m.Set(field.NewTradSesReqID(v))
}
//SetTradingSessionID sets TradingSessionID, Tag 336
func (m TradingSessionListRequest) SetTradingSessionID(v string) {
m.Set(field.NewTradingSessionID(v))
}
//SetTradSesMethod sets TradSesMethod, Tag 338
func (m TradingSessionListRequest) SetTradSesMethod(v int) {
m.Set(field.NewTradSesMethod(v))
}
//SetTradSesMode sets TradSesMode, Tag 339
func (m TradingSessionListRequest) SetTradSesMode(v int) {
m.Set(field.NewTradSesMode(v))
}
//SetTradingSessionSubID sets TradingSessionSubID, Tag 625
func (m TradingSessionListRequest) SetTradingSessionSubID(v string) {
m.Set(field.NewTradingSessionSubID(v))
}
//SetMarketSegmentID sets MarketSegmentID, Tag 1300
func (m TradingSessionListRequest) SetMarketSegmentID(v string) {
m.Set(field.NewMarketSegmentID(v))
}
//SetMarketID sets MarketID, Tag 1301
func (m TradingSessionListRequest) SetMarketID(v string) {
m.Set(field.NewMarketID(v))
}
//GetSecurityExchange gets SecurityExchange, Tag 207
func (m TradingSessionListRequest) GetSecurityExchange() (f field.SecurityExchangeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSubscriptionRequestType gets SubscriptionRequestType, Tag 263
func (m TradingSessionListRequest) GetSubscriptionRequestType() (f field.SubscriptionRequestTypeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetTradSesReqID gets TradSesReqID, Tag 335
func (m TradingSessionListRequest) GetTradSesReqID() (f field.TradSesReqIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetTradingSessionID gets TradingSessionID, Tag 336
func (m TradingSessionListRequest) GetTradingSessionID() (f field.TradingSessionIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetTradSesMethod gets TradSesMethod, Tag 338
func (m TradingSessionListRequest) GetTradSesMethod() (f field.TradSesMethodField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetTradSesMode gets TradSesMode, Tag 339
func (m TradingSessionListRequest) GetTradSesMode() (f field.TradSesModeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetTradingSessionSubID gets TradingSessionSubID, Tag 625
func (m TradingSessionListRequest) GetTradingSessionSubID() (f field.TradingSessionSubIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetMarketSegmentID gets MarketSegmentID, Tag 1300
func (m TradingSessionListRequest) GetMarketSegmentID() (f field.MarketSegmentIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetMarketID gets MarketID, Tag 1301
func (m TradingSessionListRequest) GetMarketID() (f field.MarketIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//HasSecurityExchange returns true if SecurityExchange is present, Tag 207
func (m TradingSessionListRequest) HasSecurityExchange() bool {
return m.Has(tag.SecurityExchange)
}
//HasSubscriptionRequestType returns true if SubscriptionRequestType is present, Tag 263
func (m TradingSessionListRequest) HasSubscriptionRequestType() bool {
return m.Has(tag.SubscriptionRequestType)
}
//HasTradSesReqID returns true if TradSesReqID is present, Tag 335
func (m TradingSessionListRequest) HasTradSesReqID() bool {
return m.Has(tag.TradSesReqID)
}
//HasTradingSessionID returns true if TradingSessionID is present, Tag 336
func (m TradingSessionListRequest) HasTradingSessionID() bool {
return m.Has(tag.TradingSessionID)
}
//HasTradSesMethod returns true if TradSesMethod is present, Tag 338
func (m TradingSessionListRequest) HasTradSesMethod() bool {
return m.Has(tag.TradSesMethod)
}
//HasTradSesMode returns true if TradSesMode is present, Tag 339
func (m TradingSessionListRequest) HasTradSesMode() bool {
return m.Has(tag.TradSesMode)
}
//HasTradingSessionSubID returns true if TradingSessionSubID is present, Tag 625
func (m TradingSessionListRequest) HasTradingSessionSubID() bool {
return m.Has(tag.TradingSessionSubID)
}
//HasMarketSegmentID returns true if MarketSegmentID is present, Tag 1300
func (m TradingSessionListRequest) HasMarketSegmentID() bool {
return m.Has(tag.MarketSegmentID)
}
//HasMarketID returns true if MarketID is present, Tag 1301
func (m TradingSessionListRequest) HasMarketID() bool {
return m.Has(tag.MarketID)
}