Navigation

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

    Posts made by tsingh

    • I am not getting my SGB holdings via API

      I am not getting my SGB holdings via API. Kindly help.
      I tried following APIs https://apiconnect.angelone.in/rest/secure/angelbroking/portfolio/v1/getAllHolding
      https://apiconnect.angelone.in/rest/secure/angelbroking/portfolio/v1/getHolding

      posted in Bugs
      T
      tsingh
    • RE: cannot get my SGB Sovereign Gold Bonds info in GET /holding

      I am also not getting my SGB holdings. Kindly help.
      I also tried https://apiconnect.angelone.in/rest/secure/angelbroking/portfolio/v1/getAllHolding

      posted in Bugs
      T
      tsingh
    • RE: Websocket

      Consider the issue closed, issue was that I was passing incorrect token's list

      posted in NodeJS SDK
      T
      tsingh
    • RE: Websocket

      @Moderator_1
      I am using com.angelbroking.smartapi:smartapi-java:jar:2.2.3

      Also I am using SmartStreamTicker.
      Kotlin code snippet :-

       val smartStreamTicker = SmartStreamTicker(clientId, feedtoken, smartStreamListener, delay, period)
          smartStreamTicker.connect()
          smartStreamTicker.subscribe(SmartStreamSubsMode.SNAP_QUOTE, tokens.toSet())
          return smartStreamTicker
      
      posted in NodeJS SDK
      T
      tsingh
    • RE: Websocket

      I am also facing this issue

      posted in NodeJS SDK
      T
      tsingh
    • RE: not able to connect to wsfeeds.angelbroking.com:443

      @Moderator_2

      I am also facing this issue
      Failed to connect to 'wsfeeds.angelbroking.com:443': Operation timed out

      posted in NodeJS SDK
      T
      tsingh
    • WebSocket Streaming size and max connections

      H Team
      How many websocket connections can I open for WebSocket Streaming feed?
      How many scribs can I subscribe per connection?

      Thanks

      posted in Bugs
      T
      tsingh
    • error code AB1004 | login

      Re: AB1004

      getting following error while logging in
      "message": "Something Went Wrong, Please Try After Sometime",
      "errorcode": "AB1004",

      posted in General Discussion
      T
      tsingh
    • cannot get my SGB Sovereign Gold Bonds info in GET /holding

      Hi team
      I cannot get SGB Sovereign Gold Bonds info in https://apiconnect.angelbroking.com/rest/secure/angelbroking/portfolio/v1/getHolding
      Kindly suggest how to view gold bonds holding?

      API response

      {
        "status": true,
        "message": "SUCCESS",
        "errorcode": "",
        "data": [
          
        ]
      }
      

      my holdings screenshot -
      b85a5f6b-c423-42a5-ba82-02e7bb3c3779-image.png

      CLIENT ID - T185904

      posted in Bugs
      T
      tsingh
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      Please migrate - Client Id - T185904

      posted in General Discussion
      T
      tsingh
    • CANNOT LOGIN - URGENT

      I get the following error when logging using TOTP
      {
      status: false,
      message: 'request validation error',
      errorcode: 'AB1007',
      data: null
      }
      Client Id - T185904

      Kindly help!!

      @admin
      @admin

      posted in Bugs
      T
      tsingh
    • RE: order feed not working

      @administrators
      @admin
      waiting for your response.
      Is this a known issue?

      posted in Bugs
      T
      tsingh
    • RE: Websocket Call in Java

      @laskshmi you need to read the response byte by byte as per this response contract in here - https://smartapi.angelbroking.com/docs/WebSocket2

      Best ok luck !!

      posted in NodeJS SDK
      T
      tsingh
    • RE: order feed not working

      reposted as bug

      https://smartapi.angelbroking.com/topic/3425/order-feed-not-working

      posted in General Discussion
      T
      tsingh
    • order feed not working

      Hi team
      I am trying to integrate order feed following this documentation - https://smartapi.angelbroking.com/docs/WebSocketOrderStatus

      I am getting following error when creating websocket connection

      node.js code snippet
      
      let init = (jwt)=>{
          let client = new (require("websocket").client)();
          client.on('connectFailed', function(error) {
              console.error('web socket', error);
          });
          let url = `wss://smartapisocket.angelbroking.com/websocket?jwttoken=${jwt}&clientcode=${CLIENT_ID}&apikey=${KEY}`
          client.connect(url)
      }
      

      Following error is thrown immediately :-

      web socket Error: socket hang up
          at connResetException (node:internal/errors:692:14)
          at TLSSocket.socketOnEnd (node:_http_client:478:23)
          at TLSSocket.emit (node:events:539:35)
          at endReadableNT (node:internal/streams/readable:1345:12)
          at processTicksAndRejections (node:internal/process/task_queues:83:21) {
        code: 'ECONNRESET'
      }
      

      client id - T185904

      posted in Bugs
      T
      tsingh
    • order feed not working

      Hi team
      I am trying to integrate order feed following this documentation - https://smartapi.angelbroking.com/docs/WebSocketOrderStatus

      I am getting following error when creating websocket connection

      node.js code snippet

      let init = (jwt)=>{
          let client = new (require("websocket").client)();
          client.on('connectFailed', function(error) {
              console.error('web socket', error);
          });
          let url = `wss://smartapisocket.angelbroking.com/websocket?jwttoken=${jwt}&clientcode=${CLIENT_ID}&apikey=${KEY}`
          client.connect(url)
      }
      init()
      

      Following error is thrown immediately :-

      web socket Error: socket hang up
          at connResetException (node:internal/errors:692:14)
          at TLSSocket.socketOnEnd (node:_http_client:478:23)
          at TLSSocket.emit (node:events:539:35)
          at endReadableNT (node:internal/streams/readable:1345:12)
          at processTicksAndRejections (node:internal/process/task_queues:83:21) {
        code: 'ECONNRESET'
      }
      

      client id - T185904

      posted in General Discussion
      T
      tsingh
    • RE: SECURITY THREAT

      Please go through this article to find all the reasons why we should not pass sensitive information in query params

      https://blog.httpwatch.com/2009/02/20/how-secure-are-query-strings-over-https/

      posted in General Discussion
      T
      tsingh
    • is there any API to get order by order id?

      is there any API to get order by order id?
      could not find it here

      posted in General Discussion
      T
      tsingh
    • RE: Binary data from websocket 2.0

      @vrkhyd
      CLOSED.
      got it.
      need to step by step parse the bytes as mentioned it here
      https://smartapi.angelbroking.com/docs/WebSocket2

      Too much of effort!!
      Feedback - could have been a simpler contract

      posted in General Discussion
      T
      tsingh
    • SECURITY THREAT

      the order feedback and market feeds websocket APIs are not secure
      they are accepting jwt token and API-keys in request URL.

      This is highly vulnerable. Any middleware can read URL context path and query params as they are not encrypted.

      Kindly upgrade the APIs for better security
      https://smartapi.angelbroking.com/docs/WebSocketOrderStatus

      clientId - T185904

      posted in General Discussion
      T
      tsingh