Hi @admin ,
Can you please migrate my account (H234957) as I am getting "Login Id or password is invalid" while executing code.
Hi @admin ,
Can you please migrate my account (H234957) as I am getting "Login Id or password is invalid" while executing code.
Thanks @pratikpopat92
Yes I also thought that could be the reason as there is usage of TOTP in other libraries but not in Nodejs.
Any information how can I make it work with Nodejs .
Hi @piidus,
I think you need to provide correct TOTP code in following line of code:
obj.generateSession("","","totp") # (if you are trying similar code )
I tried with python SDK & it works there but not working with Nodejs . Any information on this ?
Hi all,
Can anyone help , I am getting following error while trying Smartapi trading API :
data:null
errorcode:'AB1050'
message:'Invalid totp'
status:false
Code snippet :
let { SmartAPI, WebSocket } = require("smartapi-javascript");
let smart_api = new SmartAPI({
api_key: "TRADING_API_KEY",
});
smart_api.generateSession("My_AngelOneUserID", "Password")
.then((data) => { //Getting above error in data
return smart_api.getProfile();