Skip to content

Commit 1f1bff0

Browse files
committed
Merge pull request #71 from andradei/master
Fix some typos and re-generate code.
2 parents 012a57a + b88d26b commit 1f1bff0

File tree

578 files changed

+586
-586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

578 files changed

+586
-586
lines changed

_gen/generate-messages/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func genMessages() {
4141

4242
func genMessageImports() string {
4343
fileOut := `
44-
import(
44+
import(
4545
"github.com/quickfixgo/quickfix"
4646
"github.com/quickfixgo/quickfix/enum"
4747
`
@@ -247,7 +247,7 @@ func genMessageRoute(msg *datadictionary.MessageDef) string {
247247
//A RouteOut is the callback type that should be implemented for routing Message
248248
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
249249
250-
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
250+
//Route returns the beginstring, message type, and MessageRoute for this Message type
251251
func Route(router RouteOut) (string,string,quickfix.MessageRoute) {
252252
r:=func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
253253
m:=new(Message)

doc.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ Creating your QuickFIX Application
55
66
Creating a FIX application is as easy as implementing the QuickFIX Application interface. By implementing these interface methods in your derived type, you are requesting to be notified of events that occur on the FIX engine. The function that you should be most aware of is fromApp.
77
8-
Here are explanations of what these functions provide for you.
8+
Here are explanations of what these callback functions provide for you.
99
1010
OnCreate(sessionID SessionID)
1111
12-
This method is called when quickfix creates a new session. A session comes into and remains in existence for the life of the application. Sessions exist whether or not a counter party is connected to it. As soon as a session is created, you can begin sending messages to it. If no one is logged on, the messages will be sent at the time a connection is established with the counterparty.
12+
OnCreate is called when quickfix creates a new session. A session comes into and remains in existence for the life of the application. Sessions exist whether or not a counter party is connected to it. As soon as a session is created, you can begin sending messages to it. If no one is logged on, the messages will be sent at the time a connection is established with the counterparty.
1313
1414
OnLogon(sessionID SessionID)
1515
16-
This callback notifies you when a valid logon has been established with a counter party. This is called when a connection has been established and the FIX logon process has completed with both parties exchanging valid logon messages.
16+
OnLogon notifies you when a valid logon has been established with a counter party. This is called when a connection has been established and the FIX logon process has completed with both parties exchanging valid logon messages.
1717
1818
OnLogout(sessionID SessionID)
1919
20-
This callback notifies you when an FIX session is no longer online. This could happen during a normal logout exchange or because of a forced termination or a loss of network connection.
20+
OnLogout notifies you when an FIX session is no longer online. This could happen during a normal logout exchange or because of a forced termination or a loss of network connection.
2121
2222
ToAdmin(message Message, sessionID SessionID)
2323
24-
This callback provides you with a peak at the administrative messages that are being sent from your FIX engine to the counter party. This is normally not useful for an application however it is provided for any logging you may wish to do. Notice that the Message is not const. This allows you to add fields before an adminstrative message before it is sent out.
24+
ToAdmin provides you with a peak at the administrative messages that are being sent from your FIX engine to the counter party. This is normally not useful for an application however it is provided for any logging you may wish to do. Notice that the Message is not const. This allows you to add fields before an adminstrative message is sent out.
2525
2626
ToApp(message Message, sessionID SessionID) error
2727
28-
This is a callback for application messages that you are being sent to a counterparty. Notice that the Message is not const. This allows you to add fields before an application message before it is sent out.
28+
ToApp notifies you of application messages that you are being sent to a counterparty. Notice that the Message is not const. This allows you to add fields before an application message before it is sent out.
2929
3030
FromAdmin(message Message, sessionID SessionID) MessageRejectError
3131
32-
This callback notifies you when an administrative message is sent from a counterparty to your FIX engine. This can be usefull for doing extra validation on logon messages such as for checking passwords.
32+
FromAdmin notifies you when an administrative message is sent from a counterparty to your FIX engine. This can be usefull for doing extra validation on logon messages such as for checking passwords.
3333
3434
FromApp(msg Message, sessionID SessionID) MessageRejectError
3535
36-
This is one of the core entry points for your FIX application. Every application level request will come through here. If, for example, your application is a sell-side OMS, this is where you will get your new order requests. If you were a buy side, you would get your execution reports here.
36+
FromApp is one of the core entry points for your FIX application. Every application level request will come through here. If, for example, your application is a sell-side OMS, this is where you will get your new order requests. If you were a buy side, you would get your execution reports here.
3737
3838
The sample code below shows how you might start up a FIX acceptor which listens on a socket. If you wanted an initiator, you would simply replace NewAcceptor in this code fragment with NewInitiator.
3939

fix40/advertisement/Advertisement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (m Message) Marshal() quickfix.Message { return quickfix.Marshal(m) }
5151
//A RouteOut is the callback type that should be implemented for routing Message
5252
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
5353

54-
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
54+
//Route returns the beginstring, message type, and MessageRoute for this Message type
5555
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
5656
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
5757
m := new(Message)

fix40/allocation/Allocation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (m Message) Marshal() quickfix.Message { return quickfix.Marshal(m) }
133133
//A RouteOut is the callback type that should be implemented for routing Message
134134
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
135135

136-
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
136+
//Route returns the beginstring, message type, and MessageRoute for this Message type
137137
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
138138
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
139139
m := new(Message)

fix40/allocationack/AllocationACK.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (m Message) Marshal() quickfix.Message { return quickfix.Marshal(m) }
3737
//A RouteOut is the callback type that should be implemented for routing Message
3838
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
3939

40-
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
40+
//Route returns the beginstring, message type, and MessageRoute for this Message type
4141
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
4242
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
4343
m := new(Message)

fix40/dontknowtrade/DontKnowTrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (m Message) Marshal() quickfix.Message { return quickfix.Marshal(m) }
3838
//A RouteOut is the callback type that should be implemented for routing Message
3939
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
4040

41-
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
41+
//Route returns the beginstring, message type, and MessageRoute for this Message type
4242
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
4343
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
4444
m := new(Message)

fix40/email/Email.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (m Message) Marshal() quickfix.Message { return quickfix.Marshal(m) }
3939
//A RouteOut is the callback type that should be implemented for routing Message
4040
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
4141

42-
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
42+
//Route returns the beginstring, message type, and MessageRoute for this Message type
4343
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
4444
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
4545
m := new(Message)

fix40/executionreport/ExecutionReport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (m Message) Marshal() quickfix.Message { return quickfix.Marshal(m) }
121121
//A RouteOut is the callback type that should be implemented for routing Message
122122
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
123123

124-
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
124+
//Route returns the beginstring, message type, and MessageRoute for this Message type
125125
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
126126
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
127127
m := new(Message)

fix40/heartbeat/Heartbeat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (m Message) Marshal() quickfix.Message { return quickfix.Marshal(m) }
2222
//A RouteOut is the callback type that should be implemented for routing Message
2323
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
2424

25-
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
25+
//Route returns the beginstring, message type, and MessageRoute for this Message type
2626
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
2727
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
2828
m := new(Message)

fix40/indicationofinterest/IndicationofInterest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (m Message) Marshal() quickfix.Message { return quickfix.Marshal(m) }
5959
//A RouteOut is the callback type that should be implemented for routing Message
6060
type RouteOut func(msg Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
6161

62-
//Route returns the beginstring, message type, and MessageRoute for this Mesage type
62+
//Route returns the beginstring, message type, and MessageRoute for this Message type
6363
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
6464
r := func(msg quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
6565
m := new(Message)

0 commit comments

Comments
 (0)