Navigation

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

    arunsingh

    @arunsingh

    2
    Reputation
    33
    Posts
    26
    Profile views
    2
    Followers
    1
    Following
    Joined Last Online

    arunsingh Follow

    Best posts made by arunsingh

    • Websocket 2.0, frequently getting 401

      Hi @admin ,

      I am getting below error, when I try to authenticate.
      Sometimes it works, but sometimes it give below error.

      I am passing headers as below
      ws.addHeader("Authorization", "Bearer " + token);
      ws.addHeader("x-api-key", apiKey);
      ws.addHeader("x-client-code", clientId);
      ws.addHeader("x-feed-token", feedToken);

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

      posted in General Discussion
      A
      arunsingh

    Latest posts made by arunsingh

    • RE: Websocket 2.0, frequently getting 401

      @admin, Data not receiving

      posted in General Discussion
      A
      arunsingh
    • RE: Websocket 2.0, frequently getting 401

      Hi @admin,

      Any changes in WS2.0?
      It was working find but again started getting

      com.neovisionaries.ws.client.OpeningHandshakeException: The status code of the opening handshake response is not '101 Switching Protocols'. The status line is: HTTP/1.1 429 Too Many Requests

      Could you please look into this? Error Too many requests is not correct. Getting the same for the st req

      posted in General Discussion
      A
      arunsingh
    • Websocket 2.0, frequently getting 401

      Hi @admin ,

      I am getting below error, when I try to authenticate.
      Sometimes it works, but sometimes it give below error.

      I am passing headers as below
      ws.addHeader("Authorization", "Bearer " + token);
      ws.addHeader("x-api-key", apiKey);
      ws.addHeader("x-client-code", clientId);
      ws.addHeader("x-feed-token", feedToken);

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

      posted in General Discussion
      A
      arunsingh
    • RE: Websocket multiple sessions

      @admin When can we expect a fix on this?

      posted in General Discussion
      A
      arunsingh
    • RE: Websocket multiple sessions

      @admin thanks. This is great 👍

      posted in General Discussion
      A
      arunsingh
    • Websocket multiple sessions

      Hi @admin,how many websocket sessions i can open to fetch different set of instruments data ? With one feedtoken

      posted in General Discussion
      A
      arunsingh
    • RE: History api -> AB2001

      @admin When can we expect historical data for Index and FNO?

      posted in Bugs
      A
      arunsingh
    • RE: History api -> AB2001

      @admin My bad. It's working properly. Somehow I ignored fromdate and todate from request, but it was getting printed in the request logs at my end. 🙂

      posted in Bugs
      A
      arunsingh
    • RE: History api -> AB2001

      @admin

      Request is as below

      {
      "exchange" : "NSE",
      "symboltoken" : "3045",
      "interval" : "FIVE_MINUTE",
      "fromdate" : "2021-06-01 05:57",
      "todate" : "2021-06-03 05:57"
      }

      posted in Bugs
      A
      arunsingh
    • History api -> AB2001

      Hi @admin , I am getting below error message in history API

      {
      "success": null,
      "status": "false",
      "message": "Internal Error",
      "data": null,
      "errorcode": "AB2001"
      }

      posted in Bugs
      A
      arunsingh