Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. AravindAnbalagan
    3. Topics
    A
    • Profile
    • Following 0
    • Followers 2
    • Topics 4
    • Posts 11
    • Best 1
    • Groups 1

    Topics created by AravindAnbalagan

    • A

      Robo order not support MCX
      NodeJS SDK • • AravindAnbalagan

      1
      0
      Votes
      1
      Posts
      19
      Views

      No one has replied

    • A

      Unable to get option chain in AWS EC2-same works in local
      NodeJS SDK • • AravindAnbalagan

      4
      0
      Votes
      4
      Posts
      58
      Views

      F

      Did you got the issue resolved I have the same issue

    • A

      Need assistance on web Socket call
      NodeJS SDK • • AravindAnbalagan

      6
      0
      Votes
      6
      Posts
      115
      Views

      D

      @admin This is really awesome! Saves lot of time.
      Just one difference I found. The prices received are multiplied by 100 and user has to divide it by 100 to get right price.

      Is it correct implementation or some bug.
      I dont understand the reason to do so.

      @Override
      public void onQuoteArrival(Quote quote) {
      ZonedDateTime exchangeTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(quote.getExchangeFeedTimeEpochMillis()), TZ_IST);
      String data = String.format("token: %s"
      + " sequenceNumber: %d"
      + " ltp: %.2f"
      + " open: %.2f"
      + " high: %.2f"
      + " low: %.2f"
      + " close: %.2f"
      + " exchangeTime: %s"
      + " exchangeToClientLatency: %s",
      quote.getToken().toString(),
      quote.getSequenceNumber(),
      (quote.getLastTradedPrice() / 100.0),
      (quote.getOpenPrice() / 100.0),
      (quote.getHighPrice() / 100.0),
      (quote.getLowPrice() / 100.0),
      (quote.getClosePrice() / 100.0),
      exchangeTime,
      Instant.now().toEpochMilli() - quote.getExchangeFeedTimeEpochMillis());
      System.out.println(data);
      }

    • A

      Facing issue in TOTP Automation
      NodeJS SDK • • AravindAnbalagan

      8
      0
      Votes
      8
      Posts
      135
      Views

      A

      @dipeshbodas

      public static String key = "Agf5EKgf2EGRTGRGgf7DOKSJI6gfSZG66Q";
      public static String clientID = "XXXXX";

      public static String clientPass = "0000";
      public static String apiKey = "ggklv44L";

      GoogleAuthenticator gAuth = new GoogleAuthenticator();
      String code = String.valueOf( gAuth.getTotpPassword(key));

      smartConnect = new SmartConnect(apiKey);
      user = Optional.ofNullable(smartConnect.generateSession(clientID, clientPass, code));