Navigation

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

    C# Websocket not working?

    General Discussion
    3
    14
    103
    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.
    • A
      admin @ashishmavani last edited by

      HI @Raja Our team is working on websocket.

      R 1 Reply Last reply Reply Quote 0
      • R
        Raja @ashishmavani last edited by Raja

        @ashishmavani Thanks for your help. I will give it a try. Looks like C# developers are second rated here. Looks like python API websocket is working(giving reply messages!!).
        I am going to look for alternative API solutions. Let me know if you have any suggestions.
        Thanks

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

          @admin Thanks for your reply. but I am getting the same reply for more than a month from Angel. Can't afford to wait any longer. Please do let me know when you have a fully implemented stable API product.
          Thanks.

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

            @admin No progress on this websocket from 2021 ??? still websocket not working

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

              @admin I am getting ticks like this ,please help on c# web socket

              Tick Received : [{"tvalue":"22/07/2022 23:13:37","name":"tm"}]
              Tick Received : [{"tvalue":"22/07/2022 23:13:38","name":"tm"}]
              Tick Received : [{"tvalue":"22/07/2022 23:13:39","name":"tm"}]
              Tick Received : [{"tvalue":"22/07/2022 23:13:40","name":"tm"}]
              Tick Received : [{"tvalue":"22/07/2022 23:13:41","name":"tm"}]
              Tick Received : [{"tvalue":"22/07/2022 23:13:42","name":"tm"}]
              Tick Received : [{"tvalue":"22/07/2022 23:13:43","name":"tm"}]

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

                @admin My code

                _WS.ConnectforStockQuote(agr.feedToken, AppSettings.AngelClientCode);
                if (_WS.IsConnected())
                {
                string script = "nse_cm|26009";
                //script = "mcx_fo|227536&mcx_fo|220366&mcx_fo|225891&mcx_fo|226858";
                _WS.RunScript(agr.feedToken, AppSettings.AngelClientCode, script, "mw");
                _WS.MessageReceived += WriteResult;

                                //_WS.Close(true);// to stop and close socket connection
                            }
                            exitEvent.WaitOne();
                        
                           
                   
                    static void WriteResult(object sender, MessageEventArgs e)
                    {
                        Console.WriteLine("Tick Received : " + e.Message);
                
                    }
                
                A 1 Reply Last reply Reply Quote 0
                • A
                  admin @dstelangre last edited by

                  Hi @dstelangre , please use websocket 2.0 --> https://smartapi.angelbroking.com/topic/1861/user-feedback-websocket-2-0-beta-rollout-python-language

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

                    @admin looks like admin got active and replying all post after a long time excep mine

                    Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

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

                      I know its old topic, but I am facing the same issue and wanted to know if this is working for anyone or should I just look for alternate options?
                      I am trying only the WebSocket example that was mentioned in the below git link https://github.com/angel-one/smartapi-dotnet

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

                        The “WebSocket unable to connect” error message indicates that you are likely working behind a proxy that doesn't support the WebSocket protocol. In this case, the device connections will switch to the HTTP protocol.

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