Spaghetti API Logic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lopiner
    Junior Member
    • Feb 2009
    • 117

    #1

    Spaghetti API Logic

    Is there any market besides Soccer - Asian Handicap where a selection id doesnt represent a single Market Selection?
    It baffles me how a simple rule like a unique selection ID inside a market cannot be applied across all markets. Is it hard to have different selections ID in the Asian Handicap market?
    fooledbyabet.com
  • Lopiner
    Junior Member
    • Feb 2009
    • 117

    #2
    Let me also make a suggestion. You shouldn't assume a 0 Handicap value when one is not specifying the field in the json request. So this should be an invalid request:

    Code:
    {
        "jsonrpc": "2.0",
        "method": "SportsAPING/v1.0/placeOrders",
        "params": {
            "marketId": "1.121341700",
            "instructions": [
                {
                    "orderType": "LIMIT",
                    "selectionId": 25912,
                    "side": "BACK",
                    "limitOrder": {
                        "size": 10.00,
                        "price": 1.60,
                        "persistenceType": "LAPSE"
                    }
                }
            ],
            "customerRef": null
        },
        "id": 1
    }
    But it's not, if i make that request the API assumes im betting on the 0 Handicap.
    fooledbyabet.com

    Comment

    • Lopiner
      Junior Member
      • Feb 2009
      • 117

      #3
      The Total Goals in Soccer also has the handicap field and the same selection id for different outcomes.
      I'm sure this was done this way not by logic but to keep some kind of compatibility with your backend or to satisfy someone. A pair of MarketID/SelectionID should be unique and then you could have a lot of extra fields as you wish like the handicap, total goals, etc. to help the poor guy at the backend so he doesn't have to change the whole thing.

      Anyone else knows about more markets like this one? Thanks
      fooledbyabet.com

      Comment

      • StefanBelo.
        Junior Member
        • Jan 2009
        • 105

        #4
        Watch this video:

        https://youtu.be/VaHoo95Bhfg

        for today there are Asian handicap markets in basketball, cricket, rugby union and soccer/football.
        betfair bot platform, bfexplorer bot sdk

        Comment

        • Lopiner
          Junior Member
          • Feb 2009
          • 117

          #5
          Thanks for the info StefanBelo. Are you sure those markets have repeated Selection IDs in them? Just saying because the +1 Home team market in football and others don't suffer from this problem, all Selection ID's in them are unique. As i remember the basketball, baseball, etc. are all markets with the handicap defined not in the selections but in the market itself (meaning that they only have two selections).
          fooledbyabet.com

          Comment

          Working...
          X