Navigation

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

    .Net Core Protocol not supported Error

    Test
    2
    12
    71
    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.
    • P
      prakash.john last edited by

      Hi Team,

      I want to cover 3 items here:

      1. The dll is not working for .net core projects. It seems like an issue with the Security protocol that you support from your server end.

      The issue starts with trying to generate token using SmartAPI > POSTWebRequest : Line 75 of SmartAPI.cs from the Github repo of https://github.com/angelbroking-github/smartapi-dotnet

      ServicePointManager.SecurityProtocol = (SecurityProtocolType)48 | (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072;

      1. question: Do you not support having a marketWatch without logging in. Do i must GenerateToken?

      2. The data returned in MarketWatch is not as posted in the documentation or am i missing something?
        I ran with .Net framework(not .core) so working example that you have provided in github but the data that i receive in console is

      documentation: https://smartapi.angelbroking.com/docs/WebSocketStreaming (there are 34 properties here) but
      a. i don't get all
      b. sometimes they are too less too

      [{"to":"2169187335.26","lo":"520.40","e":"nse_cm","sp":"522.45","c":"519.80","ltp":"522.40","ltq":"4","tk":"10604","bs":"168","ltt":"28/05/2021 11:47:36","tsq":"1156595","v":"4141093","bp":"522.35","cng":"02.60","bq":"2","ap":"523.82","nc":"00.50","name":"sf","tbq":"846809"}]

      [{"tvalue":"28/05/2021 11:47:38","name":"tm"}]
      [{"e":"nse_cm","name":"sf","ltp":"522.45","ltq":"100","tk":"10604","ltt":"NA"}] ### less properties

      c. in FO: missing OI & other data

      [{"to":"4800213108.00","lo":"522.50","e":"nse_fo","sp":"525.70","c":"523.90","ltp":"525.60","ltq":"1851","tk":"48540","bs":"5553","ltt":"28/05/2021 11:47:29","tsq":"2841285","v":"9116175","bp":"525.60","cng":"01.70","bq":"3702","ap":"526.56","nc":"00.32","name":"sf","tbq":"1073580"}]

      1. I dont see a category to ask C#/.Net SDK
      A 1 Reply Last reply Reply Quote 0
      • A
        admin @prakash.john last edited by

        HI @prakash-john we have noted this we will update you on this.

        P 1 Reply Last reply Reply Quote 0
        • P
          prakash.john @admin last edited by

          @admin Can i contribute to GitHub repo as anyways im coding for myself(of course i generally prefer .net core). Upto you guys.

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @prakash.john last edited by

            HI @prakash-john we coordinate with our team and update you on this.

            1 Reply Last reply Reply Quote 0
            • P
              prakash.john last edited by prakash.john

              @admin any update on those 4 queries?

              A 1 Reply Last reply Reply Quote 0
              • A
                admin @prakash.john last edited by

                Hi @prakash-john We will update you on this I have shared the issue with our team.

                1 Reply Last reply Reply Quote 0
                • A
                  admin last edited by

                  @prakash-john said in .Net Core Protocol not supported Error:

                  The dll is not working for .net core projects. It seems like an issue with the Security protocol that you support from your server end.

                  1)Our team is working on this

                  @prakash-john said in .Net Core Protocol not supported Error:

                  question: Do you not support having a marketWatch without logging in. Do i must GenerateToken?

                  Yes you need to login first and get the token.

                  @prakash-john said in .Net Core Protocol not supported Error:

                  The data returned in MarketWatch is not as posted in the documentation or am i missing something?
                  I ran with .Net framework(not .core) so working example that you have provided in github but the data that i receive in console is

                  documentation: https://smartapi.angelbroking.com/docs/WebSocketStreaming (there are 34 properties here) but
                  a. i don't get all
                  b. sometimes they are too less too

                  Values are only updated once their is change in them.

                  @prakash-john said in .Net Core Protocol not supported Error:

                  in FO: missing OI & other data

                  Currently we are not providing it.

                  @prakash-john said in .Net Core Protocol not supported Error:

                  I dont see a category to ask C#/.Net SDK
                  we will create one for that.

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    prakash.john @admin last edited by

                    @admin said in .Net Core Protocol not supported Error:

                    Values are only updated once their is change in them.

                    How are we supposed to get initial data when getting the first tick. For a new connection would it not provide a one time snapshot of all the data?

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      admin @prakash.john last edited by

                      Hi @prakash-john Please go through the below documentation
                      https://smartapi.angelbroking.com/docs/WebSocketStreaming

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        prakash.john @admin last edited by

                        @admin Any update on the protocol error or .Net core project ?

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          admin @prakash.john last edited by

                          Hi @prakash-john we update you on this.

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            admin @admin last edited by

                            HI @prakash-john the issue has been solved.

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