Navigation

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

    Probable inconsistency in the streaming data

    General Discussion
    5
    16
    136
    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.
    • S
      Surya 1 @jiwan1986 last edited by

      @rjbanna Thank for the explanations. Very much appreciated.

      Main motivation for me to switch to AB API was to get good quality ticks and not to miss ticks as it happened often with other big broker in India. If I am expected to use ticks with timestamp every 3-4 seconds, I need to switch back. I also dont understand why cant time be included in every tick that's it transmitted. Isn't that a basic requirement for a API ?

      B 1 Reply Last reply Reply Quote 0
      • B
        bhatashweeja @Surya 1 last edited by bhatashweeja

        @rjbanna agreed with you we can use ltp of tvalue response to build the candle

        @admin @bhaveshjain Will it not be possible to just give us the following line as tick response continuously

        [{"to":"7128494980.08","lo":"1970.05","e":"nse_cm","sp":"1977.05","c":"1974.35","ltp":"1977.00","ltq":"47","tk":"2885","bs":"6","ltt":"16/12/2020 11:10:44","tsq":"955550","v":"3597688","bp":"1977.00","cng":"02.65","bq":"53","ap":"1981.41","nc":"00.13","name":"sf","tbq":"468907"}]
        

        and include the timeframe also in this response and get rid of the following data

        [{"tvalue":"16/12/2020 11:10:44","name":"tm"},{"e":"nse_cm","name":"sf","ltp":"1977.05","ltq":"40","tk":"2885","ltt":"NA"}]
        

        It would make us developers life easier

        If we want we can make do with the existing format as well but i don't want to work too hard on rearranging the data that i got from the API , the data should come in clean and consistent way

        S 1 Reply Last reply Reply Quote 0
        • S
          shenoytech @bhatashweeja last edited by

          @taleevaalam1 @bhaveshjain hi bhavesh this is the issue i was speaking to you during conversation held with you, day before yesterday.

          also @taleevaalam1 @rjbanna i need to ask you how many scripts data you can stream at a time cause i have subscribed for 50 scripts but i'm able to get data of only few scripts.

          B A 2 Replies Last reply Reply Quote 0
          • B
            bhatashweeja @shenoytech last edited by bhatashweeja

            @dorje Will have to check that , you can run more than one program and divide the number of scrips among them

            i.e : Run 5 programs with 10 scrips each

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

              @dorje said in Probable inconsistency in the streaming data:

              hi bhavesh this is the issue i was speaking to you during conversation held with you, day before yesterday.

              Noted. I have asked my development team to work on the feedback shared on this post. We will keep you posted.

              1 Reply Last reply Reply Quote 0
              • J
                jiwan1986 last edited by

                @rajanprabu Yes it would be helpful if we receive timestamp in every tick, but I don't think so it is necessary. Because if there's no tickdata from the exchange, then you won't be able to confirm whether you should complete one candle formation or not. There are many scrips in which you won't get tickdata if there is no buyer/seller. It might happen that you won't get tickdata even after 10 minutes. In this case if you are using M5 timeframe, you won't be able to know when to close your candle and this will raise many issues. So I would suggest you not to use tickdata timestamps. Create your own timer function for it.

                S 1 Reply Last reply Reply Quote 0
                • J
                  jiwan1986 last edited by

                  @dorje I have to check. I'm using the tickdata with 4 scrips and I'm receiving quotes for all of them. I'll add more to it and let you know the outcome.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Surya 1 @jiwan1986 last edited by

                    @rjbanna Thanks for your views. Algo trading is done on scrips which has lots of liquidity/volume. I would assume no algo trader would touch illiquid scrip that has no trades for 10 minutes. so Its mostly index and stocks listed under FnO. Algorithms are backtested using data with true timestamp from an authorised vendor. All brokers subscribe to 1 sec snapshot from NSE and relay it to the users as it is. I am using one international broker ( for US/Europe Markets ) and one large Indian broker for the same. I have always used timestamp of the ticks for making my candles.

                    J B 2 Replies Last reply Reply Quote 0
                    • J
                      jiwan1986 @Surya 1 last edited by

                      @rajanprabu Yes I know, no one would choose illiquid stocks for algos but I just suggested you how you can overcome this issue for this API. As I mentioned earlier, I totally agree that every tick should get the timestamp and I also request developers to do the same. You can wait for the fix if they are going to do this or else you can use workaround.

                      1 Reply Last reply Reply Quote 0
                      • B
                        bhatashweeja @Surya 1 last edited by

                        @rajanprabu I don't think we should have any kind of limitations due to the liquidity of the stocks, whatever the volatility of the stock it should be treated in a same manner.

                        @rjbanna we should see the tick response for any non-volatile stock and then determine how the response should be

                        Can you guys share any token id for some nonvolatile stock

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          jiwan1986 @bhatashweeja last edited by

                          @taleevaalam1 You can try any commodity like copper, lead, zinc or any currency derivatives. They don't move that much.

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