Navigation

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

    dipeshbodas

    @dipeshbodas

    Worked as a software professional for 10+ years before becoming SB of Angel Broking. Currently automating different strategies using smartAPI. If anyone wants any help in automating their strategies I am happy to help.
    Connect with me on whatsapp - 9819576487

    1
    Reputation
    56
    Posts
    15
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Mumbai

    dipeshbodas Follow

    Best posts made by dipeshbodas

    This user hasn't posted anything yet.

    Latest posts made by dipeshbodas

    • RE: not able to connect to wsfeeds.angelbroking.com:443

      @Moderator_2
      @Moderator_1
      @admin
      I have already said I am using latest SDK
      <dependency>
      <groupId>com.angelbroking.smartapi</groupId>
      <artifactId>smartapi-java</artifactId>
      <version>2.2.3</version>
      </dependency>

      Is there any other version availabale ?

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

      @Moderator_2
      @Moderator_1
      @admin
      can someone please look into this issue ? It has been too long

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

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

      still the same error. I am using latest SDK
      <dependency>
      <groupId>com.angelbroking.smartapi</groupId>
      <artifactId>smartapi-java</artifactId>
      <version>2.2.3</version>
      </dependency>

      posted in NodeJS SDK
      D
      dipeshbodas
    • Unable to login to smarapi page

      .
      Getting below error
      Request URL:
      https://apiconnect.angelbroking.com/rest/auth/angelbroking/client/v1/login
      Request Method:
      OPTIONS
      Status Code:
      502 Bad Gateway

      posted in Bugs
      D
      dipeshbodas
    • not able to connect to wsfeeds.angelbroking.com:443

      @admin
      while connecting to wsfeeds.angelbroking.com:443 I am getting below error at this line tickerProvider.connect();

      com.neovisionaries.ws.client.WebSocketException: F`ailed to connect to 'wsfeeds.angelbroking.com:443': Connection timed out: connect
      at com.neovisionaries.ws.client.SocketConnector.connectSocket(SocketConnector.java:127)
      at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:239)
      at com.neovisionaries.ws.client.SocketConnector.connect(SocketConnector.java:190)
      at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2351)
      at com.angelbroking.smartapi.ticker.SmartAPITicker.connect(SmartAPITicker.java:288)
      at com.tradewithpivots.algotrade.services.StreamingService.tickerUsage(StreamingService.java:70)
      at com.tradewithpivots.algotrade.services.StreamingService.getStream(StreamingService.java:34)
      at com.tradewithpivots.algotrade.startup.Onload.loadSymbols(Onload.java:23)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMethod.invoke(InitDestroyAnnotationBeanPostProcessor.java:457)
      at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:401)
      at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:219)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:419)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1762)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:598)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520)
      at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:942)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:608)
      at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
      at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734)
      at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:436)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295)
      at com.tradewithpivots.algotrade.AlgoTradingApplication.main(AlgoTradingApplication.java:10)
      Caused by: java.net.ConnectException: Connection timed out: connect
      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)

      posted in NodeJS SDK
      D
      dipeshbodas
    • RE: invalid TOTP error errorcode":"AB1050" with java

      @Moderator_2
      I had to generate the TOTP from the smartapi website and provide key to Authenticator app. TOTP generation is still not working.
      Also when authenticated getting below error
      com.neovisionaries.ws.client.WebSocketException: Failed to connect to 'wsfeeds.angelbroking.com:443': Connection timed out: connect

      posted in NodeJS SDK
      D
      dipeshbodas
    • invalid TOTP error errorcode":"AB1050" with java

      @admin
      Getting error as invliad totp. PFB code snippet
      Code :
      SmartConnect smartConnect = new SmartConnect();

      smartConnect.setApiKey("<API KEY>");
      
      GoogleAuthenticator gAuth = new GoogleAuthenticator();
      
      String totpcode = String.valueOf(gAuth.getTotpPassword("<secret key>"));
      
      System.out.println(" TOTP : "+totpcode);
      
      User user = smartConnect.generateSession("<clientCode>","<PIN>",totpcode);
      
      smartConnect.setAccessToken(user.getAccessToken());
      

      console output :

      {"data":null,"message":"Invalid totp","errorcode":"AB1050","status":false}JSONObject["data"] is not a JSONObject (class org.json.JSONObject$Null : null).

      posted in NodeJS SDK
      D
      dipeshbodas
    • getCandleData is returning null for historical dates

      trying to get Data for SBIN here is code snippet
      login successful and totp is accepted before calling this api
      JSONObject requestObejct = new JSONObject();
      requestObejct.put("exchange", "NSE");
      requestObejct.put("symboltoken", token);
      requestObejct.put("interval", "ONE_DAY");
      requestObejct.put("fromdate", "2023-08-01 09:00");
      requestObejct.put("todate", "2023-08-10 15:35");

      String response = smartConnect.candleData(requestObejct);
      System.out.println("response : "+response);

      posted in NodeJS SDK
      D
      dipeshbodas
    • Historical data returning null

      code snippet

      posted in NodeJS SDK
      D
      dipeshbodas
    • RE: Facing issue in TOTP Automation

      getTOTPCode(apiKey);

      can you share the code for this ?
      facing issues while using totp
      dipesh.bodas@gmail.com

      posted in NodeJS SDK
      D
      dipeshbodas