-
Notifications
You must be signed in to change notification settings - Fork 0
/
TradeCaptureReportRequestAck.go
76 lines (71 loc) · 3.32 KB
/
TradeCaptureReportRequestAck.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
//Package tradecapturereportrequestack msg type = AQ.
package tradecapturereportrequestack
import (
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/enum"
"github.com/quickfixgo/quickfix/fix50sp1/instrmtleggrp"
"github.com/quickfixgo/quickfix/fix50sp1/instrument"
"github.com/quickfixgo/quickfix/fix50sp1/undinstrmtgrp"
"github.com/quickfixgo/quickfix/fixt11"
)
//Message is a TradeCaptureReportRequestAck FIX Message
type Message struct {
FIXMsgType string `fix:"AQ"`
Header fixt11.Header
//TradeRequestID is a required field for TradeCaptureReportRequestAck.
TradeRequestID string `fix:"568"`
//TradeRequestType is a required field for TradeCaptureReportRequestAck.
TradeRequestType int `fix:"569"`
//SubscriptionRequestType is a non-required field for TradeCaptureReportRequestAck.
SubscriptionRequestType *string `fix:"263"`
//TotNumTradeReports is a non-required field for TradeCaptureReportRequestAck.
TotNumTradeReports *int `fix:"748"`
//TradeRequestResult is a required field for TradeCaptureReportRequestAck.
TradeRequestResult int `fix:"749"`
//TradeRequestStatus is a required field for TradeCaptureReportRequestAck.
TradeRequestStatus int `fix:"750"`
//Instrument Component
Instrument instrument.Component
//UndInstrmtGrp Component
UndInstrmtGrp undinstrmtgrp.Component
//InstrmtLegGrp Component
InstrmtLegGrp instrmtleggrp.Component
//MultiLegReportingType is a non-required field for TradeCaptureReportRequestAck.
MultiLegReportingType *string `fix:"442"`
//ResponseTransportType is a non-required field for TradeCaptureReportRequestAck.
ResponseTransportType *int `fix:"725"`
//ResponseDestination is a non-required field for TradeCaptureReportRequestAck.
ResponseDestination *string `fix:"726"`
//Text is a non-required field for TradeCaptureReportRequestAck.
Text *string `fix:"58"`
//EncodedTextLen is a non-required field for TradeCaptureReportRequestAck.
EncodedTextLen *int `fix:"354"`
//EncodedText is a non-required field for TradeCaptureReportRequestAck.
EncodedText *string `fix:"355"`
//MessageEventSource is a non-required field for TradeCaptureReportRequestAck.
MessageEventSource *string `fix:"1011"`
//TradeID is a non-required field for TradeCaptureReportRequestAck.
TradeID *string `fix:"1003"`
//SecondaryTradeID is a non-required field for TradeCaptureReportRequestAck.
SecondaryTradeID *string `fix:"1040"`
//FirmTradeID is a non-required field for TradeCaptureReportRequestAck.
FirmTradeID *string `fix:"1041"`
//SecondaryFirmTradeID is a non-required field for TradeCaptureReportRequestAck.
SecondaryFirmTradeID *string `fix:"1042"`
Trailer fixt11.Trailer
}
//Marshal converts Message to a quickfix.Message instance
func (m Message) Marshal() quickfix.Message { return quickfix.Marshal(m) }
//A RouteOut is the callback type that should be implemented for routing Message
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
m := new(Message)
if err := quickfix.Unmarshal(msg, m); err != nil {
return err
}
return router(*m, sessionID)
}
return enum.ApplVerID_FIX50SP1, "AQ", r
}