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
    1
    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: Historical API data incorrect data

      @Moderator_3 got it my bad, very sorry for that,

      but why there is no data for 17-07-2024 is there limit like, data will be available only after T+1 day

      posted in Bugs
      A
      avinash256shinde
    • Historical API data incorrect data

      I am using following API to get Historical data with ONE MINUTE interval

      here is request body

      {
           "exchange": "NSE",
           "symboltoken": "21401",
           "interval": "ONE_MINUTE",
           "fromdate": "2024-07-01 12:00",
           "todate": "2024-07-17 16:00"
      }
      

      17 Days data, API is returning response, but It's incorrect response or something not properly mentioned in Document

      I have received following response from API (truncated response)

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": [
              [
                  "2024-07-01T12:00:00+05:30",
                  7.11,
                  7.11,
                  7.11,
                  7.11,
                  1340
              ],
              [
                  "2024-07-01T12:01:00+05:30",
                  7.1,
                  7.11,
                  7.1,
                  7.11,
                  807
              ],
              [
                  "2024-07-01T12:02:00+05:30",
                  7.1,
                  7.11,
                  7.1,
                  7.11,
                  2241
              ],
              [
                   "2024-07-16T15:27:00+05:30",
                    7.33,
                          7.33,
                          7.32,
                          7.33,
                          7380
                      ],
                      [
                          "2024-07-16T15:28:00+05:30",
                          7.33,
                          7.33,
                          7.32,
                          7.32,
                          10203
                      ],
                      [
                          "2024-07-16T15:29:00+05:30",
                          7.33,
                          7.33,
                          7.32,
                          7.33,
                          11953
                      ]
      

      as per response

      • you can see I am getting candle data for midnight 00:00:00+05:30 , how can that be? shouldn't data be from market hour and start with 09:15:00+05:30

      • I have given todate value 2024-07-17 16:00 but I am not receiving any data fro that.

      posted in Bugs
      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 😅

      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