How to retrieve web prices and volume using streaming API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • broomyster
    Junior Member
    • Mar 2022
    • 2

    #1

    How to retrieve web prices and volume using streaming API

    Hi,

    Apologies in advance if I'm covering old ground. I have searched the forums, but it's possible I'm not searching for the right thing.

    Basically, I'm new to the BF API, however, I've covered all the basics pretty easily. I've retrieved market info, runners, etc., that I need. I can successfully subscribe to market streams. All good so far.

    What I'm trying to do is to replicate what I see on the web page (notwithstanding the dev API stream is delayed). From reading the API docs, I believe what the BF site presents is virtual bet info => EX_BEST_OFFERS_DISP in market data filters. What I'm after, though, is the virtual price and the *unmatched* bet volume (liquidity) - where the size metric in the level/price/size tuple is matched bets.

    Is this available in the market stream or order stream? Am I completely missing something in the docs? Worse - have I completely misunderstood what I'm seeing?

    Any help very much appreciated - even if it's just to point me at a message thread.

    Many thanks.
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi broomyster

    To retrieve the information required you need to subscribe to both EX_BEST_OFFERS_DISP and EX_TRADED. The Market Stream API contains details of all market-related unmatched orders (price, size) and traded volume (price, size).

    The Order Stream contains details of any changes to your own unmatched/matched orders.

    Kind Regards

    Neil

    Comment

    • broomyster
      Junior Member
      • Mar 2022
      • 2

      #3
      Brilliant, thanks in for your help Neil. I'll give that a crack on the weekend
      Cheers

      Wayne

      Comment

      Working...
      X