Navigation

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

    DMoney

    @DMoney

    0
    Reputation
    5
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    DMoney Follow

    Best posts made by DMoney

    This user hasn't posted anything yet.

    Latest posts made by DMoney

    • RE: Code to create Session in Java

      you would get all the details here, see the readme file

      https://github.com/angel-one/smartapi-java

      posted in NodeJS SDK
      D
      DMoney
    • RE: Unable to find java jar file

      @chs8788 you will get everything GitHub
      https://github.com/angel-one/smartapi-java

      posted in NodeJS SDK
      D
      DMoney
    • RE: Is Anybody is getting Live Datafeed using Websocket 2.0?

      And now I'm unable to connect to WebSocket Order Stream
      The handshake response is null

      posted in General Discussion
      D
      DMoney
    • SmartStreamAPI

      Re: Need assistance on web Socket call

      I'm using new smart stream api, the api call looks good.
      (Sample/Unreleased code- You can find the code on GitHub at https://github.com/angel-one/smartapi-java/pull/1/files)

      However

      1. Quote/LTP - update have prices, multiple of 100, so user has to divide it by 100 to get actual price. Is it correct logic or some bug, as I dont understand the reason to do so.
        e.g.
        @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);
        }

      2. Missing Bid/Offer prices in Quote.
        What is the purpose of Quote when you dont have Bid/Offer prices in it?

      public void onQuoteArrival(Quote quote)

      1. Snapshot_Quote
        There is no 5 levels of depth as promised in API Doc

      I understand the API is still in development, please make sure you correct these issues.

      posted in NodeJS SDK
      D
      DMoney
    • RE: Need assistance on web Socket call

      @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);
      }

      posted in NodeJS SDK
      D
      DMoney