can't parse securitylist message
Created by: Kaign
I am stuck with this little program, fix server returns securitylist
message with many repeated symbols 146=50. How can I get all 50 ?
import (
"github.com/quickfixgo/quickfix"
fix44sl "github.com/quickfixgo/quickfix/fix44/securitylist"
)
func newApplication() *Application {
app := &Application{
MessageRouter: quickfix.NewMessageRouter(),
}
app.AddRoute(fix44sl.Route(app.onSecurityList))
return app
}
func (ap *Application) FromApp(message quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
return ap.Route(message, sessionID)
}
func (a *Application) onSecurityList(msg fix44sl.SecurityList, sessionID quickfix.SessionID) (err quickfix.MessageRejectError) {
noRelSyms, err := msg.GetNoRelatedSym()
if err != nil {
log.Fatal("ERROR ", err)
}
return nil
}
2016/06/20 19:21:55 main.go:40: ERROR Repeating group fields out of order (group 146: template is wrong or delimiter 55 not found: expected 50 groups, but found 1)