Re: From when can get updated C#/.net SDK
https://github.com/Sen-Gupta/AngelOne.SmartApi
Please feel to open ideas/issues on Github.
This is just a smaple project.
Re: From when can get updated C#/.net SDK
https://github.com/Sen-Gupta/AngelOne.SmartApi
Please feel to open ideas/issues on Github.
This is just a smaple project.
@nishi21694 That's correct.
The code id resulting AB1050 error.
Seems like Angel Team making changes without testing them thoroughly.
Re: From when can get updated C#/.net SDK
https://github.com/Sen-Gupta/AngelOne.SmartApi
Please feel to open ideas/issues on Github.
This is just a smaple project.
What is the language being used?
You are not supposed to enter TOTP. You are supposed to enter the QR code received during TOTP registration.
If you are using python/dot net, or any other language, they have their OTP nugets, where you can pass your QR and it generates the OTP.
Plesae let me the language you are using for integration for further help.
What programing language are you using for it?
You are supposed to use any OTP library.
//Initialize Samart API using clientcode and password to test the code.
string totp = "2EYUVJNXYERUXPLAATDRTUHSWM";
string Client_code = "DELL2456"; //YOUR CLIENT CODE
string Password = "3456"; //YOUR PASSWORD
string api_key = "OvPZUMMM";
string JWTToken = ""; // optional
string RefreshToken = ""; // optional
SmartApi connect = new SmartApi(api_key, JWTToken, RefreshToken);
OutputBaseClass obj = new OutputBaseClass();
//Login by client code and password
obj = connect.GenerateSession(Client_code, Password, totp);
------Next in SmartConnetClass
/User Calls/
public OutputBaseClass GenerateSession(string clientcode, string password, string totpString)
{
OutputBaseClass res = new OutputBaseClass();
byte[] secretBytes = Base32Encoding.ToBytes(totpString);
**// Create an instance of the TOTP class
var totp = new Totp(secretBytes);
// Get the current TOTP code
string totpCode = totp.ComputeTotp();**
res.status = true;
res.http_code = "200";
try
{
AngelTokenResponse agr = new AngelTokenResponse();
string URL = APIURL + "/rest/auth/angelbroking/user/v1/loginByPassword";
string PostData = "{\"clientcode\":\"" + clientcode + "\",\"password\":\"" + password + "\",\"totp\":\"" + **totpCode** + "\"}";
If required, let me know, I can push entire code to GitHub