Navigation

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

    HOW TO GET LIVE MARKET DATA IN JAVA SDK

    NodeJS SDK
    2
    10
    128
    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.
    • G
      globalepitychia last edited by

      Hi Team,
      I'm newbie in this.
      So, please can you suggest me what to do.
      I want to get all BSE stock live price in my android application.
      so can you suggest me steps or API Url.
      I don't know how to start.

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @globalepitychia last edited by

        HI @globalepitychia you can use the ltp api for getting the live data or you can use the websocket.

        1 Reply Last reply Reply Quote 0
        • G
          globalepitychia last edited by

          URL - https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/getLtpData

          PARAMETER - {exchange = "NSE",tradingSymbol = "SBIN-EQ",symboltoken = "3045"}

          RESPONSE - {"exchange":"NSE","tradingsymbol":"SBIN-EQ","symboltoken":"3045","open":427,"high":427,"low":418.9,"close":430,"ltp":420.9}

          we got this response.

          But we want all stock live price. How we can achieve that?

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @globalepitychia last edited by

            HI @globalepitychia said in HOW TO GET LIVE MARKET DATA IN JAVA SDK:

            PARAMETER - {exchange = "NSE",tradingSymbol = "SBIN-EQ",symboltoken = "3045"}
            RESPONSE - {"exchange":"NSE","tradingsymbol":"SBIN-EQ","symboltoken":"3045","open":427,"high":427,"low":418.9,"close":430,"ltp":420.9}
            we got this response.
            But we want all stock live price. How we can achieve that?

            This task can be achieved by using web socket.

            G 1 Reply Last reply Reply Quote 0
            • G
              globalepitychia @admin last edited by

              @admin Not able to find documentation about web socket can you please provide us link for java sdk. How to use web socket.

              A 1 Reply Last reply Reply Quote 0
              • A
                admin @globalepitychia last edited by

                hi @globalepitychia Please find the java sdk link below:
                https://github.com/angelbroking-github/smartapi-java

                G 1 Reply Last reply Reply Quote 0
                • G
                  globalepitychia @admin last edited by

                  @admin
                  Question: 1 : How to get LTP of multiple stocks after market close.
                  Question: 2 : How can we get Top Trending, Top Gainer, Top Losers stocks.
                  Question: 3 : How can we get data for chart like candle chart and line chart(graph).
                  Question: 4 : How can we get specific stock for search implementation.
                  we have to use below link or another option available?
                  link is official or not?
                  (https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json).
                  Question: 5 : How to get stock stats like 52 weeks high/low, last close, last traded, etc.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    admin @globalepitychia last edited by admin

                    hi @globalepitychia
                    1)you can use ltp api to get the data.
                    2)you need to write your own piece of code for calculating top gainers and top losers or you can use available lib such as nsepy
                    3)you can use any external library to plot the streaming value or you can just resample it to desired time frame and plot it.
                    4)not clear
                    5)(https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json).
                    it is official
                    6)How to get stock stats like 52 weeks high/low, last close, last traded, etc.
                    you need to write your own piece of code to do this.

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      globalepitychia @admin last edited by

                      @admin Hi
                      thank you for your reply.

                      how can we achieve "future" and "option" functionality using this API can you please suggest us.
                      is there any special api or we have to do our code?
                      we don't have any idea about it.

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        admin @globalepitychia last edited by

                        HI @globalepitychia For future and options data you need to subscribe to web socket by passing token from instrument dump file.

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