LIMIT order transition to MOC, match doesn't match bsp?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freemans13
    Junior Member
    • Jun 2023
    • 14

    #1

    LIMIT order transition to MOC, match doesn't match bsp?

    Hi all

    Here is an example of an unmatched order

    {"id":"318861299333","p":1.27,"s":196.85,"side":"L ","status":"E","pt":"MOC","ot":"L","pd":1693326300 000,"sm":0,"sr":196.85,"sl":0,"sc":0,"sv":0,"rac": "","rc":"REG_GGC","rfo":"STARTING_READY-OX4sDw__","rfs":""}

    This order transitions to MOC and matches

    {"id":"318861299333","p":1.27,"s":196.85,"bsp":53. 15,"side":"L","status":"EC","pt":"MOC","ot":"L","p d":1693326300000,"md":1693326361000,"avp":1.304313 423895458,"sm":174.65,"sr":0,"sl":0,"sc":0,"sv":0, "rac":"","rc":"REG_GGC","rfo":"STARTING_READY-OX4sDw__","rfs":""}

    My math says my original order was for £196.85 @ 1.27 with a payout of £250 and a liability of £53.15

    The uo update shows a match for £174.65 @ 1.30 with a payout of £227.05 and a liability of £52.4

    My understanding of what is going on is wrong because I expect the uo update to show a match for £177.17 @ 1.30 with a payout of £230 and a liability of £53.15

    My MOC orders are never matching the liability I set when I place the order.
    What am I missing here?

    Ideally what I want is actually for the MOC order to match a size so that the payout is £250 but I can't seem to find a way of doing that.

  • Sansa
    Member
    • Jan 2019
    • 35

    #2
    I agree with your math in that I too would have expected £177.17 @ 1.3 to be matched so that the liability was still £53.15.

    I believe you cannot match on Payout as the Liability changes. Which could mean you don't have enough funds. Plus I guess the matching on close process needs a fixed Liability.

    Comment

    • freemans13
      Junior Member
      • Jun 2023
      • 14

      #3
      Originally posted by Sansa View Post
      I believe you cannot match on Payout as the Liability changes. Which could mean you don't have enough funds.
      Good point - hadn't thought of that.

      Originally posted by Sansa View Post
      I agree with your math in that I too would have expected £177.17 @ 1.3 to be matched so that the liability was still £53.15.
      so why does betfair not try to match my liability? this isn't a one-off order. The majority of my orders are like this

      Comment

      • freemans13
        Junior Member
        • Jun 2023
        • 14

        #4
        I contacted developer support on this. Turns out my problem is that I'm rounding the avp and bsp.

        Originally posted by Neil View Post
        The liability for your initial bet was £53.15 (53.1495). The liability of your expected bet £177.17 @1.30 is £53.151 (so more than your initial liability).

        The liability of the matched bet was the same as your initial liability when you take into account the average price matched and rounding 0.304313 x 174.65 = 53.148

        Comment

        • polinkuer12
          Junior Member
          • Dec 2023
          • 3

          #5
          Originally posted by freemans13 View Post
          I contacted developer support on this. Turns out my problem is that I'm rounding the avp and bsp.

          Maybe like let's get as accurate a number as possible


          Quick Draw

          Comment

          Working...
          X