Navigation

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

    shekharchauhan

    @shekharchauhan

    0
    Reputation
    8
    Posts
    12
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    shekharchauhan Follow

    Best posts made by shekharchauhan

    This user hasn't posted anything yet.

    Latest posts made by shekharchauhan

    • RE: Intermittently Getting HostnameUnverifiedException in the Websocket program

      @admin
      updated the SDK but still issue is there. Though the exception is not there but it stays disconnected. Following is console output

      onDisconnected
      onConnected
      onDisconnected

      posted in NodeJS SDK
      S
      shekharchauhan
    • Intermittently Getting HostnameUnverifiedException in the Websocket program

      Websocket connection works fine for some times, get ticks successfully for sometime but it gets disconnected after a while with below exception. it don't reconnect again . Can you please help to get it fixed ,


      com.neovisionaries.ws.client.HostnameUnverifiedException: The certificate of the peer does not match the expected hostname (omnefeeds.angelbroking.com)
      onError: The certificate of the peer does not match the expected hostname (omnefeeds.angelbroking.com)
      at com.neovisionaries.ws.client.SocketConnector.verifyHostname(SocketConnector.java:171)
      at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:126)
      at com.neovisionaries.ws.client.SocketConnector.connect(SocketConnector.java:83)
      at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2152)
      at com.angelbroking.smartapi.ticker.SmartAPITicker.connect(SmartAPITicker.java:222)
      at com.angelbroking.smartapi.ticker.SmartAPITicker.reconnect(SmartAPITicker.java:379)
      at com.angelbroking.smartapi.ticker.SmartAPITicker.doReconnect(SmartAPITicker.java:124)
      at com.angelbroking.smartapi.ticker.SmartAPITicker$1.run(SmartAPITicker.java:97)
      at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
      at java.base/java.util.TimerThread.run(Timer.java:506)
      com.neovisionaries.ws.client.HostnameUnverifiedException: The certificate of the peer does not match the expected hostname (omnefeeds.angelbroking.com)
      at com.neovisionaries.ws.client.SocketConnector.verifyHostname(SocketConnector.java:171)
      at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:126)
      at com.neovisionaries.ws.client.SocketConnector.connect(SocketConnector.java:83)
      at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2152)
      at com.angelbroking.smartapi.ticker.SmartAPITicker.connect(SmartAPITicker.java:222)
      at com.angelbroking.smartapi.ticker.SmartAPITicker.reconnect(SmartAPITicker.java:379)
      at com.angelbroking.smartapi.ticker.SmartAPITicker.doReconnect(SmartAPITicker.java:124)
      at com.angelbroking.smartapi.ticker.SmartAPITicker$1.run(SmartAPITicker.java:97)
      at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
      at java.base/java.util.TimerThread.run(Timer.java:506)
      onE

      posted in NodeJS SDK
      S
      shekharchauhan
    • Feed Token is coming null

      How do I get the value of feedtoken for Websocket call.

      it is not populated generateSession is success ( it returns accessToken & other fields but feedToken is coming null)

      posted in NodeJS SDK
      S
      shekharchauhan
    • RE: Error at login API - "YOUR USER ID OR PASSWORD IS INVALID"

      @admin said in Error at login API - "YOUR USER ID OR PASSWORD IS INVALID":

      migration initiated. We will send a message here post migration.

      Thanks a lot , I am able to login now

      posted in Bugs
      S
      shekharchauhan
    • How to fetch last price (LTP) of multiple instrument in one API Call

      As per the comments in Examples code it is mentioned that we can fetch LTP of multiple instruments in one call. But as per API parameters input, there seems to be no such option. Can you please let me know which parameters need to be passed to do that .

      Thanks & Regards

      posted in NodeJS SDK
      S
      shekharchauhan
    • Getting Error while calling getLTP

      Getting error while calling getLTP
      passing input
      String exchange = "BSE";
      String tradingSymbol = "SBIN-EQ";

      Tried with some other options like trading symbol as "SBIN" with exchange as "NSE" as well as "BSE"

      Non of the combinations worked. below is the stack trace

      SmartAPIException [message=Symbol Not Found, code=AB1009]
      at com.angelbroking.smartapi.http.SmartAPIResponseHandler.dealWithException(SmartAPIResponseHandler.java:77)
      at com.angelbroking.smartapi.http.SmartAPIResponseHandler.handle(SmartAPIResponseHandler.java:31)
      at com.angelbroking.smartapi.http.SmartAPIRequestHandler.postRequest(SmartAPIRequestHandler.java:101)
      at com.angelbroking.smartapi.SmartConnect.getLTP(SmartConnect.java:419)
      at com.angelbroking.smartapi.sample.Examples.getLTP(Examples.java:103)
      at FetchMarketPrice.main(FetchMarketPrice.java:63)

      posted in NodeJS SDK
      S
      shekharchauhan
    • RE: Error at login API - "YOUR USER ID OR PASSWORD IS INVALID"

      @bhaveshjain
      I too have the same issue getting the following error
      {"data":null,"message":"Login Id or password is invalid","errorcode":"AB1007","status":false}

      My client_code is S498394

      posted in Bugs
      S
      shekharchauhan
    • Getting Error on connecting through smartConnect.generateSession : Cannot read the array length because "mac" is null

      Getting Error on connecting through smartConnect.generateSession : Cannot read the array length because "mac" is null

      The error is coming in file SmartAPIRequest in method createPostRequest()

      at following line

      // MAC Address
      NetworkInterface network = NetworkInterface.getByInetAddress(localHost);
      byte[] mac = network.getHardwareAddress();

      More details :
      I am running this code on local machine ( ubuntu 20.10)

      Please advice what could be the issue.

      posted in NodeJS SDK
      S
      shekharchauhan