Navigation

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

    How to get LTP for more than one stock ?

    General Discussion
    3
    6
    183
    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.
    • J
      jmkvalangai last edited by

      How to get LTP for more than one stock ? The api seems like allowing only one stock at a time, where I can see other brokers allows upto 500 stocks in one go.

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

        Dear @jmkvalangai API will always return data for single stock you need to develop piece of code to get multiple stock ltp.
        prepare a list of stock and loop all stocks.

        J 1 Reply Last reply Reply Quote 0
        • J
          jmkvalangai @admin last edited by

          @admin If I have get live quotes for 50+ stocks then it hit the API limits (per second) right ?

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

            Hi @jmkvalangai you need to convert tick data into candle data then convert it into desired time frame by resampling it.
            another option is insert sleep of few m second to avoid breaching limits.

            M 1 Reply Last reply Reply Quote 0
            • M
              mukul.ietlucknow @admin last edited by

              @admin this is not the right way to do that for getting ltp of 500 stocks then it will take lot of time. And few strategy might require this type of feature.

              If you say make web socket api so shall one person should make 500 web socket connection to get ltp.
              What will be the impact on machine.

              Zerodha has this feature where it provides ltp of multi ple stocks in one go.

              You guys charge some amount but give good and needy features

              A 1 Reply Last reply Reply Quote 0
              • A
                admin @mukul.ietlucknow last edited by

                HI @mukul-ietlucknow we appreciate your patience in case of 500 scripts you can use our web socket our team is currently working on web socket we will update you once fixed.

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