Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    wrong totp, error code = AB1050

    C#/.Net SDK
    0
    7
    52
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      samecomm6 last edited by

      obj = connect.GenerateSession(Client_code, mPin);
      I am getting AB1050 error wrong totp error
      please help on this for any solution.

      N 1 Reply Last reply Reply Quote 0
      • N
        Narendra swami @samecomm6 last edited by

        @samecomm6 I am not able to figure out, how are you instantiating for TOTP for you login

        S 4 Replies Last reply Reply Quote 0
        • S
          samecomm6 @Narendra swami last edited by

          @Narendra-swami

          string Client_code = System.Configuration.ConfigurationManager.AppSettings["client_code_angle"].ToString();
          string Password = ""; //YOUR PASSWORD
          string api_key = ""; // API KEY
          string JWTToken = "";
          string RefreshToken = "";

                              SmartApi connect = new SmartApi(api_key, JWTToken, RefreshToken);
                              OutputBaseClass obj = new OutputBaseClass();
                              //Login by client code and password
                              string mPin = "1234";
                              obj = connect.GenerateSession(Client_code, mPin);
                              AngelToken agr = obj.TokenResponse;
                              //Get Token
                              obj = connect.GenerateToken();
                              agr = obj.TokenResponse;
                              //Get Profile
                              obj = connect.GetProfile();
                              GetProfileResponse gp = obj.GetProfileResponse;
          
          1 Reply Last reply Reply Quote 0
          • S
            samecomm6 @Narendra swami last edited by

            @Narendra-swami I am now able to fix this error AB1050 due to one code provided dll in this forum

            S 1 Reply Last reply Reply Quote 0
            • S
              samecomm6 @Narendra swami last edited by

              @Narendra-swami now getting error
              Failed to get symbol details AB1018 even symbol passing as correct
              PNB-EQ and NSE EXCHANGE

              1 Reply Last reply Reply Quote 0
              • S
                samecomm6 @Narendra swami last edited by

                @Narendra-swami all issues fixed able to place order

                1 Reply Last reply Reply Quote 0
                • S
                  SujanKumarK @samecomm6 last edited by

                  @samecomm6 Which DLL it causing error?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post