Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. avinash256shinde
    A
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    avinash256shinde

    @avinash256shinde

    1
    Reputation
    6
    Posts
    2
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    avinash256shinde Follow

    Best posts made by avinash256shinde

    This user hasn't posted anything yet.

    Latest posts made by avinash256shinde

    • Websocket gives 401

      I am setting live market data, by going through README.md file https://github.com/angel-one/smartapi-java/blob/main/README.md#websocket-live-streaming-data

      but it returns following error

      Error connecting to WebSocket: The status code of the opening handshake response is not '101 Switching Protocols'. The status line is: HTTP/1.1 401 Unauthorized
      
      

      I am generating session using following code, and I do get FeedToken as well as JwtToken and refreshToken, so I think following part is correct.

      User user = smartConnect.generateSession(clientCode, "<password>", "<totp>");
      String feedToken = user.getFeedToken();
      
      posted in NodeJS SDK
      A
      avinash256shinde
    • Webscoket working example Java

      can anyone share working example of WebSocket in Java?

      I am able to connect websocket and then it disconnects immediately.

      not able to get live stream of market data.

      posted in NodeJS SDK
      A
      avinash256shinde
    • RE: smartConnect.getSearchScrip(payload); not working

      I am not sure, what was the issue, but it's resolved now.

      it only happens when I am doing it through Postman, but If I perform from code. it works

      very strange :sweat_smile:

      posted in NodeJS SDK
      A
      avinash256shinde
    • RE: smartConnect.getSearchScrip(payload); not working

      did you get solution for this, I am also facing this issue?

      posted in NodeJS SDK
      A
      avinash256shinde