Streaming Bug?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LiamP
    Junior Member
    • Oct 2015
    • 284

    #1

    Streaming Bug?

    Is this following normal / expected?

    Using the following settings:

    Code:
    fields=['EX_BEST_OFFERS', 'EX_TRADED', 'EX_TRADED_VOL', 'EX_LTP', 'EX_MARKET_DEF'],
    ladder_levels=3
    For the 'batb' field I received the following in this order as separate updates:

    Code:
    [[2, 0, 0], [1, 1.01, 9835.74], [0, 1.02, 1126.22]]
    Code:
    [[0, 1.02, 923.22]]
    Code:
    [[2, 0, 0], [1, 0, 0], [0, 0, 0]]
    Why do I get [2, 0, 0] in the latest update, surely that isn't expected? Just did a test on an empty market and I don't get the extra [2, 0, 0]. Anyone else seen this as I seem to get it on inplay horse racing when the race is ending / odds bouncing off 1.01.
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Doesn't that just indicate that there are no longer any odds at that position in the market and that you should remove them from your cache?

    So, if the market had odds of 1.01, 1.02, 1.03 and all the money was taken up at 1.03, the market would move to null, 1.01, 1.02

    So the odds at the bottom of the market need to be removed.

    Comment

    • LiamP
      Junior Member
      • Oct 2015
      • 284

      #3
      Originally posted by betdynamics View Post
      Doesn't that just indicate that there are no longer any odds at that position in the market and that you should remove them from your cache?

      So, if the market had odds of 1.01, 1.02, 1.03 and all the money was taken up at 1.03, the market would move to null, 1.01, 1.02

      So the odds at the bottom of the market need to be removed.
      Yeh but I had already received a removal for the third level so according to the documentation and what happens when I test in an empty market I shouldn't have received another [2, 0, 0].

      Comment

      • betdynamics
        Junior Member
        • Sep 2010
        • 534

        #4
        I'm not really seeing the issue.

        Code:
        [[2, 0, 0], [1, 1.01, 9835.74], [0, 1.02, 1126.22]]
        Market has moved up and now has odds of null, 1.01, 1.02

        Code:
        [[0, 1.02, 923.22]]
        Amount of money has changed at the head of the market

        Code:
        [[2, 0, 0], [1, 0, 0], [0, 0, 0]]
        All money has been removed from the market and there are now no odds on the market at all.

        Technically I could see that the second occurence of [2,0,0] is redundant, but I treat it as the whole market moving up, so the stream is telling us that positions 0 downwards are now empty.

        Whilst it may not be necessary, it doesn't cause any issue as it is just telling you to make sure that the cache entry for that position is cleared (if it is already clear, why worry?)

        For a blank market, if I got back

        Code:
        [[2, 0, 0], [1, 0, 0], [0, 0, 0]]
        then all it is telling me is that the market is blank and to ensure that all positions are clear.

        Perhaps I'm misunderstanding the concern?
        Last edited by betdynamics; 05-03-2017, 07:27 PM.

        Comment

        • LiamP
          Junior Member
          • Oct 2015
          • 284

          #5
          Agreed it's not a major issue, but why provide the second removal only sometimes, normally when the market is volatile.

          Comment

          Working...
          X