Stream API: market data stream vs orders stream

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • denys
    Junior Member
    • Mar 2021
    • 3

    #1

    Stream API: market data stream vs orders stream

    Hi.
    After a bet is placed and it does NOT get matched, is there a way to understand that market data (coming on market data stream) has that bet included in the liquidity shown?
  • CodeFever
    Junior Member
    • Dec 2018
    • 14

    #2
    The bet only gets placed if it is matched, so surely that answers the question? Or have I misunderstood your question?

    Comment

    • denys
      Junior Member
      • Mar 2021
      • 3

      #3
      "The bet only gets placed if it is matched" - ehm, no. the prices that you see on BF Exchange are the unmatched bets.
      I do think you misunderstood...

      Comment

      • LiamP
        Junior Member
        • Oct 2015
        • 284

        #4
        You can’t see individual orders in the market stream, if that’s what you are asking?

        Comment

        • denys
          Junior Member
          • Mar 2021
          • 3

          #5
          Indeed, I can't.
          The problem is that there is no way to marry order stream to market stream.
          You place a bet. That bet will result in updates on both market data stream and orders stream, however, the timing is completely unpredictable.
          You can get a market data update before order update, which can be both with or without your unmatched bet in it.
          You can get order update before market data update, and also, who knows, if that market data update has your bet or not - maybe it was so delayed that it is still not there.

          so just asking to confirm that it is indeed not possible with current API, or did i miss something in documentation?

          Comment

          • bfexplorer
            Senior Member
            • Sep 2018
            • 212

            #6
            Yes, that is the problem of streaming api, there is not atomic operation. I mentioned that issue early after streaming api was made public.

            Comment

            • CodeFever
              Junior Member
              • Dec 2018
              • 14

              #7
              "The bet only gets placed if it is matched" - ehm, no. the prices that you see on BF Exchange are the unmatched bets.
              I do think you misunderstood...

              Possibly, but I was not talking about what one see's on the Betfair Exchange but what I see at my end.

              Comment

              Working...
              X