Fully - Partially Matched Bets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #1

    Fully - Partially Matched Bets

    Hi

    I am revisiting some code I wrote ages ago and struggling to remember some details now.

    I currently have code that shows me a list of unmatched bets and also a list of matched bets. In my current implementation a bet needs to be fully matched before it moves from the unmatched to matched list.

    What I want to do is change this so I can see the bet getting matched in partial chunks. I am reading through the API, but cant spot how to do that. I am guessing it must be possible as I think the commercial Apps have ladder views that can show how much of a bet has been taken and how much is remaining.

    Thanks for any pointers on how to achieve this.

    Geoff
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    You want listCurrentOrders.

    Comment

    • geoffw123
      Senior Member
      • Mar 2014
      • 250

      #3
      Hi

      Thanks for the reply, yes I explained I already have a working implementation of this using listCurrentOrders().

      My question was how do I persuade listCurrentOrders() to give me partial chunks? I.E if I have a pending unmatched £10 bet, then only half is matched, I want list currentOrders() to then return me £5 as a matched bet and a remaining £5 unmatched bet.

      With my current code I would have to wait for a full match of £10 before it moves to matched.

      Thanks.
      Last edited by geoffw123; 10-05-2016, 10:30 AM.

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        Ah, I see.

        The listCurrentOrders returns CurrentOrderSummaryReport and sizeMatched and sizeRemaining tell you how much has been matched and how much hasn't.
        http://docs.developer.betfair.com/do...ntOrderSummary

        There's an example here:
        http://docs.developer.betfair.com/do...sts-listOrders

        Comment

        • geoffw123
          Senior Member
          • Mar 2014
          • 250

          #5
          Thanks

          Ah my mistake, I was thinking it was a param that I had to send that made it return partial chunks as separate responses. Its more simple than that, it just shows matched and unmatched portions in the one respone.

          Geoff

          Comment

          Working...
          X