Streaming API ChangeMessage missing status field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • esaStreamer
    Junior Member
    • Aug 2023
    • 2

    #1

    Streaming API ChangeMessage missing status field

    The documentation states that every ChangeMessage contains a 'status' field that indicates the health of the stream data

    https://docs.developer.betfair.com/d...Status-latency

    However, the actual data in the stream seems to be missing the status field
    e.g.
    {"op":"mcm","id":2,"clk":"AHoAkwIA7gE=","pt":16920 70757197,"ct":"HEARTBEAT"}

    Is there a flag to enable this in the initial subscription message or is the documentation not correct?
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi esaStreamer

    This field status is only set with value 503 if there are latencies.

    We’ll clarify this in the next documentation update.

    Kind Regards

    Neil

    Comment

    • esaStreamer
      Junior Member
      • Aug 2023
      • 2

      #3
      Ok, so to confirm - the "status" field will be 503 only when there's latency and it will NOT be in the ChangeMessage payload at all when there's no latencies

      Comment

      • BetfairDeveloperProgram
        Administrator
        • Oct 2008
        • 680

        #4
        Hi esaStreamer,

        This is correct, the status field will normally be null and thus get omitted from the JSON response. Only when there are latencies will it have value 503.

        Kind Regards

        Neil​

        Comment

        Working...
        X