예제 #1
0
//FromApp implemented as part of Application interface. This is the callback for all Application level messages from the counter party.
func (e TradeClient) FromApp(msg quickfix.Message, sessionID quickfix.SessionID) (reject quickfix.MessageRejectError) {
	fmt.Printf("FromApp: %s\n", msg.String())
	return
}
예제 #2
0
//ToApp implemented as part of Application interface
func (e TradeClient) ToApp(msg quickfix.Message, sessionID quickfix.SessionID) (err error) {
	msg.Build()
	fmt.Printf("Sending %s\n", &msg)
	return
}
예제 #3
0
파일: executor.go 프로젝트: cyanly/gotrade
//Use Message Cracker on Incoming Application Messages
func (e *Executor) FromApp(msg quickfix.Message, sessionID quickfix.SessionID) (reject quickfix.MessageRejectError) {
	log.Infof("FIX->SIM: FIX44NewOrderSingle \n%v", msg.String())
	return e.Route(msg, sessionID)
}
예제 #4
0
func (e *AcceptorApp) FromApp(msg quickfix.Message,
	sessionID quickfix.SessionID) quickfix.MessageRejectError {
	log.Print("Got ", msg.String())
	return nil
}
예제 #5
0
파일: fixclient.go 프로젝트: cyanly/gotrade
func (app FIXClient) FromApp(msg quickfix.Message, sessionID quickfix.SessionID) (reject quickfix.MessageRejectError) {
	log.Infof("FIX->MC EXEC: \n%v", msg.String())
	return app.Route(msg, sessionID)
}