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

    • 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
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      Please migrate - Client Id - T185904

      posted in General Discussion
      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)
      }
      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
    • RE: Binary data from websocket 2.0

      @vrkhyd
      this doc does not talks anything about decoding the binary data.

      I am also facing the same issue.

      nodejs message log:-

      {
        "type": "binary",
        "binaryData": {
          "type": "Buffer",
          "data": [
            1,
            1,
            54,
            51,
            53,
            53,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            125,
            47,
            85,
            0,
            0,
            0,
            0,
            0,
            232,
            190,
            43,
            46,
            133,
            1,
            0,
            0,
            64,
            239,
            7,
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
      
      posted in General Discussion
      T
      tsingh
    • is wss://smartapisocket.angelbroking.com/websocket DOWN?

      is websocket order feed currently down?

      wss://smartapisocket.angelbroking.com/websocket

      posted in General Discussion
      T
      tsingh
    • unable to get order feed - AG8004

      unable to get order feed
      which token shall I use? Currently I am using jwtToken.

      client id is T185904

      nodejs snippet
      Kindly review

      let initFeed = (jwt)=>{
          let web_socket = new WebSocketClient({
              clientcode: "T185904",
              jwttoken: jwt,
              apikey: PRIVATE_KEY,
              feedtype: "order_feed",
          });
          web_socket.connect()
              .then(() => {
                  web_socket.fetchData("subscribe", "order_feed");  // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed
              });
          web_socket.on('tick', receiveTick);
          function receiveTick(data) {
              console.log("receiveTick:::::", data);
          }
      }
      
      //EXCEPTION
      SyntaxError: Unexpected token A in JSON at position 0
          at JSON.parse (<anonymous>)
          at WebSocket.ws.onmessage (C:\Users\tusharsingh\projects\angel_adapter\node_modules\smartapi-javasc
      ript\lib\websocket_client.js:37:43)
      
      

      data received from websocket - AG8004

      ![0_1671490135340_angel.png](Uploading 100%)

      posted in Bugs
      T
      tsingh
    • what is error code - AB4006

      {"message":"Invalid symboltoken","errorcode":"AB4006","status":false,"data":null}

      Which token do I need to use for placing orders?
      -"jwtToken" or "refreshToken" or "feedToken"

      Currently I am using "Bearer jwtToken"

      Please update the documentation
      https://smartapi.angelbroking.com/docs/Exceptions for error code AB4006

      posted in General Discussion
      T
      tsingh
    • quantity vs disclosedquantity

      https://smartapi.angelbroking.com/docs/Orders#place
      Kindly help me understand difference between quantity and disclosedquantity

      is disclosedquantity a mandatory field?

      ![0_1671477986591_1701d3be-b612-4e59-ba5b-92761975e73c-image.png](Uploading 100%)

      posted in General Discussion
      T
      tsingh
    • I do not have any password to enable TOTP

      How do I enable TOTP
      I do not have any password for my client id. Also there is no option to reset/forget password

      My client id is T185904

      8a215a87-ff8f-4ff5-ae61-a3fe43dcc0fd-image.png T185904

      posted in General Discussion
      T
      tsingh