Navigation

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

    Rajen

    @Rajen

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

    Rajen Follow

    Best posts made by Rajen

    • RE: com.neovisionaries.ws.client.WebSocketException: Failed to connect to 'wsfeeds.angelbroking.com:443': Connection timed out: connect

      @Moderator_2 Hello sir, I am using smartapi-java-2.2.1.jar from the github repository.

      I am able to login, to get profile details and the rms details.

      When I am calling the tickerUsage() function as shown in Examples.java, I am getting this timeout error.

      posted in NodeJS SDK
      R
      Rajen

    Latest posts made by Rajen

    • RE: Getting order history

      @admin Hello sir, thank you for checking the code.

      Right now my code is
      smartConnect.getOrderHistory(smartConnect.getUserId());

      And the response is
      Order history : {"data":null,"message":"SUCCESS","errorcode":"","status":true}

      I am not getting any error but the data is null.

      Can you provide the correct way which is compatible with latest jar to solve this?

      Thank you.

      posted in NodeJS SDK
      R
      Rajen
    • Getting order history

      Hello sir,

      I am using smartapi-java-2.2.5.jar and everything is working smoothly.

      I am able to place the order.

      These are the main order parameters set :

      orderParams.exchange = Constants.EXCHANGE_MCX;
      orderParams.ordertype = Constants.ORDER_TYPE_MARKET;
      orderParams.producttype = Constants.PRODUCT_CARRYFORWARD;
      orderParams.duration = Constants.DURATION_IOC;

      The order is getting placed correctly, the order object returns orderid only.

      I want to get order history like status and price. I tried getOrderHistory() and getTrades() functions but it is returning null as data.

      Can you help for the same?

      posted in NodeJS SDK
      R
      Rajen
    • RE: How the access blocked because of exceeding the rate limit

      @Moderator_2 Hello sir, any update for this? It stops at around 500 requests in 20 minutes whereas mostly api rate limit says 5000 per hour.

      posted in General Discussion
      R
      Rajen
    • RE: How the access blocked because of exceeding the rate limit

      @Moderator_2 Hello sir, I am using the marketData() method from Java SDK. Which endpoint will be applicable for this? Is it

      /rest/secure/angelbroking/order/v1/getLtpData

      ?

      posted in General Discussion
      R
      Rajen
    • RE: How the access blocked because of exceeding the rate limit

      Hello,

      I am facing the similar issue.

      I am working with the latest version of the Java SDK, getting ohlc for 6 symbols with 2 seconds of delay.

      It worked absolutely great for around 18 minutes, then I think around 500 request it stopped getting response.

      Is there any solution for the same?

      Thank you.

      posted in General Discussion
      R
      Rajen
    • RE: com.neovisionaries.ws.client.WebSocketException: Failed to connect to 'wsfeeds.angelbroking.com:443': Connection timed out: connect

      @Moderator_2 Hello sir, I am using smartapi-java-2.2.1.jar from the github repository.

      I am able to login, to get profile details and the rms details.

      When I am calling the tickerUsage() function as shown in Examples.java, I am getting this timeout error.

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

      @Moderator_2

      Hello Sir, I'm working on the same java api, I downloaded latest jar from github dist.

      I am getting similar kind of error now. I am integrating it for the first time. Can you please help it? I am able to generate totp, get client profile, but on tickerusage() it shows the error.

      com.neovisionaries.ws.client.WebSocketException: Failed to connect to 'wsfeeds.angelbroking.com:443': Operation timed out
      at com.neovisionaries.ws.client.SocketConnector.connectSocket(SocketConnector.java:126)
      at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:238)
      at com.neovisionaries.ws.client.SocketConnector.connect(SocketConnector.java:189)
      at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2351)
      at com.angelbroking.smartapi.ticker.SmartAPITicker.connect(SmartAPITicker.java:288)
      at Examples.tickerUsage(Examples.java:366)
      at Examples.main(Examples.java:577)
      Caused by: java.net.ConnectException: Operation timed out
      at java.base/sun.nio.ch.Net.connect0(Native Method)
      at java.base/sun.nio.ch.Net.connect(Net.java:579)
      at java.base/sun.nio.ch.Net.connect(Net.java:568)
      at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
      at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
      at java.base/java.net.Socket.connect(Socket.java:633)
      at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
      at com.neovisionaries.ws.client.SocketInitiator$SocketRacer.run(SocketInitiator.java:126)
      Feb 14, 2024 6:08:22 PM Examples tickerUsage

      posted in NodeJS SDK
      R
      Rajen
    • RE: com.neovisionaries.ws.client.WebSocketException: Failed to connect to 'wsfeeds.angelbroking.com:443': Connection timed out: connect

      Hello Sir,

      Is there any solution to the issue ? I started to integrate the Java sdk and receiving the same error.

      posted in NodeJS SDK
      R
      Rajen