Navigation

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

    Invalid TOTP for c#

    General Discussion
    0
    34
    244
    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.
    • N
      Nichil72 @Nichil72 last edited by

      @Nichil72 Will you plz share your contact no. on my watsapp on 7533851081.

      1 Reply Last reply Reply Quote 0
      • N
        Nichil72 @dstelangre last edited by

        @dstelangre Will you plz share your contact no. on my watsapp on 7533851081.

        D 1 Reply Last reply Reply Quote 0
        • D
          dstelangre @Nichil72 last edited by

          @Nichil72 done

          1 Reply Last reply Reply Quote 0
          • N
            Nichil72 last edited by

            Hello Team,
            @admin @administrators Please fix the Issue and upload the code on github. So that we can download. Please do it ASAP.

            U 1 Reply Last reply Reply Quote 0
            • V
              vijayyande last edited by

              use below code to generate TOTP using otp.net

              https://github.com/kspearrin/Otp.NET

                  public static string genTOTP(string secret)
                  {
                          var totp = new Totp(OtpNet.Base32Encoding.ToBytes(secret));
              
                          if( totp.RemainingSeconds() < 2 )
                          {
                              Thread.Sleep(3);
                          }
              
                          return totp.ComputeTotp();
                  }
              
              1 Reply Last reply Reply Quote 0
              • U
                UtsavM last edited by

                @dstelangre I can integrate python solution in C#.If you wish to do so reply me on utsav.moradiya3@gmail.com.Instant code solution.

                1 Reply Last reply Reply Quote 0
                • U
                  UtsavM @Nichil72 last edited by

                  @Nichil72 I can integrate python solution in C#.If you wish to do so reply me on utsav.moradiya3@gmail.com , instantaneous code fix. Before admin releases a solution in C#, several algo traders have already adopted this temporary method.

                  1 Reply Last reply Reply Quote 0
                  • U
                    UtsavM @vijayyande last edited by

                    @vijayyande I can integrate python solution in C#.If you wish to do so reply me on utsav.moradiya3@gmail.com , instantaneous code fix. Before admin releases a solution in C#, several algo traders have already adopted this temporary method.

                    1 Reply Last reply Reply Quote 0
                    • S
                      saleem @dstelangre last edited by

                      @dstelangre
                      I am using the same code, does not seem to be working.
                      I am using Otp.Net from Nuget
                      I am using AngelBroking project as reference from Git, not the one you have attached.

                      Any reason, why its not working?
                      Any help will be great!!!

                      Thanks
                      Saleem

                      P 1 Reply Last reply Reply Quote 0
                      • S
                        saleem @vijayyande last edited by

                        @vijayyande ..
                        Please share with me, saleem.navalur@gmail.com

                        1 Reply Last reply Reply Quote 0
                        • P
                          pardeep2411 @saleem last edited by

                          @saleem its working in c# .net. otp.net is working fine

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