forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SecurityDefinitionUpdateReport.go
85 lines (80 loc) · 3.61 KB
/
SecurityDefinitionUpdateReport.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
//Package securitydefinitionupdatereport msg type = BP.
package securitydefinitionupdatereport
import (
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/enum"
"github.com/quickfixgo/quickfix/fix50sp2/applicationsequencecontrol"
"github.com/quickfixgo/quickfix/fix50sp2/instrmtleggrp"
"github.com/quickfixgo/quickfix/fix50sp2/instrument"
"github.com/quickfixgo/quickfix/fix50sp2/instrumentextension"
"github.com/quickfixgo/quickfix/fix50sp2/marketsegmentgrp"
"github.com/quickfixgo/quickfix/fix50sp2/spreadorbenchmarkcurvedata"
"github.com/quickfixgo/quickfix/fix50sp2/stipulations"
"github.com/quickfixgo/quickfix/fix50sp2/undinstrmtgrp"
"github.com/quickfixgo/quickfix/fix50sp2/yielddata"
"github.com/quickfixgo/quickfix/fixt11"
"time"
)
//Message is a SecurityDefinitionUpdateReport FIX Message
type Message struct {
FIXMsgType string `fix:"BP"`
Header fixt11.Header
//SecurityReportID is a non-required field for SecurityDefinitionUpdateReport.
SecurityReportID *int `fix:"964"`
//SecurityReqID is a non-required field for SecurityDefinitionUpdateReport.
SecurityReqID *string `fix:"320"`
//SecurityResponseID is a non-required field for SecurityDefinitionUpdateReport.
SecurityResponseID *string `fix:"322"`
//SecurityResponseType is a non-required field for SecurityDefinitionUpdateReport.
SecurityResponseType *int `fix:"323"`
//ClearingBusinessDate is a non-required field for SecurityDefinitionUpdateReport.
ClearingBusinessDate *string `fix:"715"`
//SecurityUpdateAction is a non-required field for SecurityDefinitionUpdateReport.
SecurityUpdateAction *string `fix:"980"`
//CorporateAction is a non-required field for SecurityDefinitionUpdateReport.
CorporateAction *string `fix:"292"`
//Instrument Component
Instrument instrument.Component
//UndInstrmtGrp Component
UndInstrmtGrp undinstrmtgrp.Component
//Currency is a non-required field for SecurityDefinitionUpdateReport.
Currency *string `fix:"15"`
//Text is a non-required field for SecurityDefinitionUpdateReport.
Text *string `fix:"58"`
//EncodedTextLen is a non-required field for SecurityDefinitionUpdateReport.
EncodedTextLen *int `fix:"354"`
//EncodedText is a non-required field for SecurityDefinitionUpdateReport.
EncodedText *string `fix:"355"`
//InstrmtLegGrp Component
InstrmtLegGrp instrmtleggrp.Component
//InstrumentExtension Component
InstrumentExtension instrumentextension.Component
//Stipulations Component
Stipulations stipulations.Component
//SpreadOrBenchmarkCurveData Component
SpreadOrBenchmarkCurveData spreadorbenchmarkcurvedata.Component
//YieldData Component
YieldData yielddata.Component
//MarketSegmentGrp Component
MarketSegmentGrp marketsegmentgrp.Component
//ApplicationSequenceControl Component
ApplicationSequenceControl applicationsequencecontrol.Component
//TransactTime is a non-required field for SecurityDefinitionUpdateReport.
TransactTime *time.Time `fix:"60"`
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_FIX50SP2, "BP", r
}