Following code stopped working after password change issue. Using MPIN in place of password. Same uname+pin+totp working on python. Getting following in smartapigo
Error: Invalid feed token or client code
@admin Note in example websocket/example dont have update for totp in generate session. Plesae update
code_text
ABCClient := smartApi.New("ANGEL_USER_NAME"),"ANGEL_PWD","ANGEL_API_KEY")
session, err := ABCClient.GenerateSession(Otp now)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println("User Session Tokens :- ", session.UserSessionTokens)
session.UserSessionTokens, err = StelebotClient.RenewAccessToken(session.RefreshToken)
socketClient = websocket.New(session.ClientCode, session.FeedToken, "nse_cm|17963&nse_cm|3499&nse_cm|11536&nse_cm|21808&nse_cm|317")
socketClient.Serve()