I do not understand this API response

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blackfirewings
    Junior Member
    • Aug 2019
    • 9

    #1

    I do not understand this API response

    Hello everyone.
    There is one thing about the Betfair API that I don't understand. I need your help
    In the market of "Goal Lines" the market always closes with this result when the score of the match is 0-0:
    • [numberOfWinners] => 0
    • [numberOfRunners] => 66
    • [runners] => All runners Win !!
    Does anyone know what this really means? Have everyone won? hasn't anyone won?

    For example, get info from this marketId "1.161687604"
  • bfexplorer
    Senior Member
    • Sep 2018
    • 212

    #2
    There is no problems in api response, have a look at here:

    https://youtu.be/s_564TLjSXM

    Comment

    • WTPooh
      Member
      • May 2012
      • 88

      #3
      Originally posted by bfexplorer View Post
      There is no problems in api response, have a look at here:

      https://youtu.be/s_564TLjSXM
      There is a problem with api response if the score of the match is 0-0. Check with marketId from the start post or here is another one "1.161591513".

      Comment

      • blackfirewings
        Junior Member
        • Aug 2019
        • 9

        #4
        Originally posted by bfexplorer View Post
        There is no problems in api response, have a look at here:

        https://youtu.be/s_564TLjSXM

        Sorry, you don't understand me.
        I put a sample in this url.
        http://oneclickpaste.com/82343/

        In a sample, you can view a market respone for a marketId "1.161710226"
        When a match odd is "0-0" always same result. All runners Winner.
        If the result is "0-0" all the "OVER" runners should have lost ... but, as you can see in the result, they have also won.
        I do not understand why

        Comment

        • geoffw123
          Senior Member
          • Mar 2014
          • 250

          #5
          Hi

          I just had a quick look at the Betfair Goal Line market for the Swansea v Birmingham match that just ended 3-0. The win/lose outcomes all look correct and sensible to me, From a cursory glance, I cant see anything wrong with the data coming from Betfair. Its unlikely that BF have a bug where most score outcomes work, but something breaks if the match outcome is 0 - 0.
          This total goals market is a bit complicated and fiddly, are you sure you havent got a bug in your code somewhere ? Does it seem to be wrong on all match outcomes or just 0-0 games ?

          Regards

          Comment

          • WTPooh
            Member
            • May 2012
            • 88

            #6
            Call listMarketBook with marketIds "1.161687604" and "1.161591513". Outcome of both matches is 0-0.

            Comment

            • blackfirewings
              Junior Member
              • Aug 2019
              • 9

              #7
              Example of issue :

              Match : Vitoria BA v Operario PR
              EventId : 29430864
              eventTypeId :1

              marketId :1.161655030 (Goal Lines )
              selectionId : 7044482 ( Over )
              handicap : 8

              Match result: 0-0


              Now, I make a API call like this :

              [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params" :{"marketIds" : ["1.161721734"], "orderProjection":"EXECUTABLE", "priceProjection":{ "priceData": ["EX_BEST_OFFERS"], "exBestOffersOverrides":{"rollupModel":"PAYOUT "}, "virtualise":"true" } }, "id": 1}]

              and results are in the link.
              http://oneclickpaste.com/83531/


              As you can see, although the result is 0-0, all runners have won

              Comment

              • geoffw123
                Senior Member
                • Mar 2014
                • 250

                #8
                Hi

                Bit pushed for time now, so cant check this more, I see what you are saying, that json dump does look very confusing and seemingly wrong. I think I dont use listMarketBook to get match outcome, my working example I quoted was I think using the exchange data stream, so we arent really comparing like for like, maybe that explains our different results. I am stumped for now, I will try and have a look when i get more time.

                Regards

                Comment

                • blackfirewings
                  Junior Member
                  • Aug 2019
                  • 9

                  #9
                  Ok, thanks.
                  I will wait for someone else's checks impatiently

                  Comment

                  • bfexplorer
                    Senior Member
                    • Sep 2018
                    • 212

                    #10
                    Originally posted by blackfirewings View Post


                    Sorry, you don't understand me.
                    I put a sample in this url.
                    http://oneclickpaste.com/82343/

                    In a sample, you can view a market response for a marketId "1.161710226"
                    When a match odd is "0-0" always same result. All runners Winner.
                    If the result is "0-0" all the "OVER" runners should have lost ... but, as you can see in the result, they have also won.
                    I do not understand why
                    I tested this issue in my code, as you can see in my short video, when market was closed selections statuses were correctly set, so depending on score and line margin, as this is asian handicap market, all winning selections were set as winner and losing ones as loser.

                    listMarketBook returns changes to market data, and I am no so sure for how long, after market is closed, any other call to this api method returns actually valid data. Betfair simply removes any not relevant data from response, invalidating this way data for users who just take data from betfair without betting.

                    When you bet on betfair, and want to know which bets are winner, you call listClearedOrders.

                    Comment

                    • geoffw123
                      Senior Member
                      • Mar 2014
                      • 250

                      #11
                      Hi Blackfire

                      I couldnt reproduce the problem but this morning I spotted a game that finished 0-0. (mktId =1.161772248)
                      Guess what, it reproduced the exact problem you are reporting. It was seemingly wrong using both the stream API and I also tested with listmarketbook too.
                      For both API's all 66 lines get reported as winners. See json below

                      Code:
                      [{"jsonrpc":"2.0","result":[{"marketId":"1.161772248","isMarketDataDelayed":false,"status":"CLOSED","betDelay":5,"bspReconciled":false,"complete":true,"inplay":true,"numberOfWinners":0,"numberOfRunners":66,"numberOfActiveRunners":0,"totalMatched":0.0,"totalAvailable":0.0,"crossMatching":false,"runnersVoidable":false,"version":2912784314,"runners":[{"selectionId":7044483,"handicap":0.5,"status":"WINNER"},{"selectionId":7044482,"handicap":0.5,"status":"WINNER"},{"selectionId":7044483,"handicap":0.75,"status":"WINNER"},{"selectionId":7044482,"handicap":0.75,"status":"WINNER"},{"selectionId":7044483,"handicap":1.0,"status":"WINNER"},{"selectionId":7044482,"handicap":1.0,"status":"WINNER"},{"selectionId":7044483,"handicap":1.25,"status":"WINNER"},{"selectionId":7044482,"handicap":1.25,"status":"WINNER"},{"selectionId":7044483,"handicap":1.5,"status":"WINNER"},{"selectionId":7044482,"handicap":1.5,"status":"WINNER"},{"selectionId":7044483,"handicap":1.75,"status":"WINNER"},{"selectionId":7044482,"handicap":1.75,"status":"WINNER"},{"selectionId":7044483,"handicap":2.0,"status":"WINNER"},{"selectionId":7044482,"handicap":2.0,"status":"WINNER"},{"selectionId":7044483,"handicap":2.25,"status":"WINNER"},{"selectionId":7044482,"handicap":2.25,"status":"WINNER"},{"selectionId":7044483,"handicap":2.5,"status":"WINNER"},{"selectionId":7044482,"handicap":2.5,"status":"WINNER"},{"selectionId":7044483,"handicap":2.75,"status":"WINNER"},{"selectionId":7044482,"handicap":2.75,"status":"WINNER"},{"selectionId":7044483,"handicap":3.0,"status":"WINNER"},{"selectionId":7044482,"handicap":3.0,"status":"WINNER"},{"selectionId":7044483,"handicap":3.25,"status":"WINNER"},{"selectionId":7044482,"handicap":3.25,"status":"WINNER"},{"selectionId":7044483,"handicap":3.5,"status":"WINNER"},{"selectionId":7044482,"handicap":3.5,"status":"WINNER"},{"selectionId":7044483,"handicap":3.75,"status":"WINNER"},{"selectionId":7044482,"handicap":3.75,"status":"WINNER"},{"selectionId":7044483,"handicap":4.0,"status":"WINNER"},{"selectionId":7044482,"handicap":4.0,"status":"WINNER"},{"selectionId":7044483,"handicap":4.25,"status":"WINNER"},{"selectionId":7044482,"handicap":4.25,"status":"WINNER"},{"selectionId":7044483,"handicap":4.5,"status":"WINNER"},{"selectionId":7044482,"handicap":4.5,"status":"WINNER"},{"selectionId":7044483,"handicap":4.75,"status":"WINNER"},{"selectionId":7044482,"handicap":4.75,"status":"WINNER"},{"selectionId":7044483,"handicap":5.0,"status":"WINNER"},{"selectionId":7044482,"handicap":5.0,"status":"WINNER"},{"selectionId":7044483,"handicap":5.25,"status":"WINNER"},{"selectionId":7044482,"handicap":5.25,"status":"WINNER"},{"selectionId":7044483,"handicap":5.5,"status":"WINNER"},{"selectionId":7044482,"handicap":5.5,"status":"WINNER"},{"selectionId":7044483,"handicap":5.75,"status":"WINNER"},{"selectionId":7044482,"handicap":5.75,"status":"WINNER"},{"selectionId":7044483,"handicap":6.0,"status":"WINNER"},{"selectionId":7044482,"handicap":6.0,"status":"WINNER"},{"selectionId":7044483,"handicap":6.25,"status":"WINNER"},{"selectionId":7044482,"handicap":6.25,"status":"WINNER"},{"selectionId":7044483,"handicap":6.5,"status":"WINNER"},{"selectionId":7044482,"handicap":6.5,"status":"WINNER"},{"selectionId":7044483,"handicap":6.75,"status":"WINNER"},{"selectionId":7044482,"handicap":6.75,"status":"WINNER"},{"selectionId":7044483,"handicap":7.0,"status":"WINNER"},{"selectionId":7044482,"handicap":7.0,"status":"WINNER"},{"selectionId":7044483,"handicap":7.25,"status":"WINNER"},{"selectionId":7044482,"handicap":7.25,"status":"WINNER"},{"selectionId":7044483,"handicap":7.5,"status":"WINNER"},{"selectionId":7044482,"handicap":7.5,"status":"WINNER"},{"selectionId":7044483,"handicap":7.75,"status":"WINNER"},{"selectionId":7044482,"handicap":7.75,"status":"WINNER"},{"selectionId":7044483,"handicap":8.0,"status":"WINNER"},{"selectionId":7044482,"handicap":8.0,"status":"WINNER"},{"selectionId":7044483,"handicap":8.25,"status":"WINNER"},{"selectionId":7044482,"handicap":8.25,"status":"WINNER"},{"selectionId":7044483,"handicap":8.5,"status":"WINNER"},{"selectionId":7044482,"handicap":8.5,"status":"WINNER"}]}],"id":1}]
                      This looks like it must be a bug at the Betfair Server end, triggered when a game ends 0-0. I have reported it as a possible bug to Betfair, I will post update here if they bother to reply to me.

                      A second interesting little observation, I thought i would do a sanity check using Betangel Basic (as its industry leading App.)

                      That App doesnt even display the 66 rows properly during the game, it just shows the words "under" and "over" 32 times each, so you would have no idea what the heck you were betting on. Then when the game ended it cleared the display not telling you which rows won or lost. I was expecting that App to be bug free and better.

                      Regards

                      P.S I wonder if they actually pay out for all "overs" bets when a game finishes 0-0 ? I suspect not.
                      Last edited by geoffw123; 26-08-2019, 01:52 PM.

                      Comment

                      • blackfirewings
                        Junior Member
                        • Aug 2019
                        • 9

                        #12

                        So maybe I discovered a bug? Thank you very much, I will wait for the answer given by Betfair

                        Comment

                        • blackfirewings
                          Junior Member
                          • Aug 2019
                          • 9

                          #13
                          Hi geoffw123

                          You have any news about the issue ?

                          Regards.

                          Comment

                          • geoffw123
                            Senior Member
                            • Mar 2014
                            • 250

                            #14
                            Hi Blackfire

                            Yep you were correct., I got an email from Betfair tech guy.

                            Thanks for getting in touch and sorry for the delay.

                            Yes, this is a known issue and I've raised this with the Dev team so they can add this case to the items that have previously been reported.

                            Thanks for capturing this and sending detailed information.
                            Kind Regards,
                            Betfair Developer Program

                            Comment

                            • blackfirewings
                              Junior Member
                              • Aug 2019
                              • 9

                              #15
                              Ok, thanks for a response

                              Comment

                              Working...
                              X