Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Java SmartConnect candleData function is broken

    NodeJS SDK
    0
    5
    54
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pashriva last edited by

      Re: Please send JSONObject or JSONArray for return type of smartconnect.candleData(JSONObject params)

      P 1 Reply Last reply Reply Quote 0
      • P
        pashriva @pashriva last edited by

        @admin
        This function is broken. The Line 541 throws an exception and hence the function returns null value.

        a2f9e5c9-4e29-4ae5-bf22-e57ad2c6f253-image.png

        a9d71765-d820-4369-82db-6fb513f57a13-image.png

        Below is response.
        5a189e0c-8e61-43e5-9ca6-cbea254344cf-image.png

        P J 2 Replies Last reply Reply Quote 0
        • P
          pashriva last edited by

          @admin
          I took Java file from the github, made the fix and compiled and patched to my code, so I was able to proceed. But then I encountered another issue. The data returned by the candleData() function is returning duplicate entries. For example for 1 day candleData for Heromotoco is returning below, which is like same candle 6 times.

          15d4b1ed-1b83-46a1-8c49-f1ecb23206f9-image.png

          1 Reply Last reply Reply Quote 0
          • P
            pashriva @pashriva last edited by

            @admin
            I took Java file from the github, made the fix and compiled and patched to my code, so I was able to proceed. But then I encountered another issue. The data returned by the candleData() function is returning duplicate entries. For example for 1 day candleData for Heromotoco is returning below, which is like same candle 6 times.

            15d4b1ed-1b83-46a1-8c49-f1ecb23206f9-image.png

            1 Reply Last reply Reply Quote 0
            • J
              jaskirat1208 @pashriva last edited by

              @pashriva It is possible that the instrument is not traded for the interval you are getting the data from. Try looking at the data from the NFO segment for some NIFTY futures/options. I think they are pretty liquid and are traded almost every second. So, its hard to get same candle assuming the api is correct.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post