Why doesnt the totalMatched of all runners sum up to the totalMatched of the marketid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cj2233
    Junior Member
    • Nov 2013
    • 4

    #1

    Why doesnt the totalMatched of all runners sum up to the totalMatched of the marketid

    I'm trying to get the total amount of money that has been matched on each runner and it always comes back as 0.0 even when the totalMatched of the marketid is > 0.0

    This is the call i'm making:
    {"jsonrpc": "2.0",
    "id": 1,
    "method": "SportsAPING/v1.0/listMarketBook",
    "params": {
    "marketIds": ["1.112349276"],
    "priceProjection": {
    "exBestOffersOverrides":{"bestPricesDepth":1}
    }
    }
    }

    This is the response I'm getting:
    {'betDelay': 0,
    'bspReconciled': False,
    'complete': True,
    'crossMatching': True,
    'inplay': False,
    'isMarketDataDelayed': True,
    'marketId': '1.112349276',
    'numberOfActiveRunners': 3,
    'numberOfRunners': 3,
    'numberOfWinners': 1,
    'runners': [{'handicap': 0.0,
    'selectionId': 47999,
    'status': 'ACTIVE',
    'totalMatched': 0.0},
    {'handicap': 0.0,
    'selectionId': 48756,
    'status': 'ACTIVE',
    'totalMatched': 0.0},
    {'handicap': 0.0,
    'selectionId': 58805,
    'status': 'ACTIVE',
    'totalMatched': 0.0}],
    'runnersVoidable': False,
    'status': 'OPEN',
    'totalAvailable': 1115211.12,
    'totalMatched': 108536.57,
    'version': 667246463}

    I found this example in the response of the listMarketBook https://api.developer.betfair.com/se...s-MarketPrices where the totalMatched of the runners = the totalMatched of the marketid... I've tried those parameters in my call and I'm still not seeing any positive results.
    I'm looking at 1000 different marketids for each event type and i can't find a single one where the totals add up.

    Is it normal that they don't add up? How are they related?
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Do you need to set your PriceProjection to contain a PriceData equal to EX_ALL_OFFERS, or a combination of EX_BEST_OFFERS and EX_TRADED in order to get back traded volumes?

    Comment

    • cj2233
      Junior Member
      • Nov 2013
      • 4

      #3
      I think my question was a little misleading. Basically, how can I get a totalMatched in the selection id that's greater than 0.0?

      I basically thought that the totalMatched in red would be greater than 0.0 and add up to the totalMatched in green

      {'betDelay': 0,
      'bspReconciled': False,
      'complete': True,
      'crossMatching': True,
      'inplay': False,
      'isMarketDataDelayed': True,
      'marketId': '1.112349276',
      'numberOfActiveRunners': 3,
      'numberOfRunners': 3,
      'numberOfWinners': 1,
      'runners': [{'handicap': 0.0,
      'selectionId': 47999,
      'status': 'ACTIVE',
      'totalMatched': 0.0},
      {'handicap': 0.0,
      'selectionId': 48756,
      'status': 'ACTIVE',
      'totalMatched': 0.0},
      {'handicap': 0.0,
      'selectionId': 58805,
      'status': 'ACTIVE',
      'totalMatched': 0.0}],
      'runnersVoidable': False,
      'status': 'OPEN',
      'totalAvailable': 1115211.12,
      'totalMatched': 108536.57,
      'version': 667246463}

      Comment

      • davecon
        Junior Member
        • Dec 2010
        • 86

        #4
        Hi
        Interesting "Hair Pulling" one this one
        But as BetDynamics points out you MAY need the prices but then again maybe not: Try this first
        Have a look at the Answer - 2 Calls same race Same Selection
        isMarketDataDelayed":true
        [{"selectionId":5629950,"handicap":0.0,"status":"AC TIVE","adjustmentFactor":27.8,"totalMatched":0.0,"ex":{"availableToBack":[{"price":3.1,"size":13.3},{"price":3.05,"size":68. 61},{"price":3.0,"size":15.95}],
        ==AND THEN==
        isMarketDataDelayed":false
        [{"selectionId":5629950,"handicap":0.0,"status":"AC TIVE","adjustmentFactor":27.8,"lastPriceTraded":3.15,"totalMatched":2644.67,"ex":{"availableToBack":[{"price":3.1,"size":23.46},{"price":3.05,"size":28 .86},{"price":3.0,"size":15.61}],
        Notice also "Last Price Traded"
        It only works when you use your LIVE Key not Delay
        Thanks we both learnt something else Today
        Dave


        Originally posted by cj2233 View Post
        I think my question was a little misleading. Basically, how can I get a totalMatched in the selection id that's greater than 0.0?

        I basically thought that the totalMatched in red would be greater than 0.0 and add up to the totalMatched in green

        {'betDelay': 0,
        'bspReconciled': False,
        'complete': True,
        'crossMatching': True,
        'inplay': False,
        'isMarketDataDelayed': True,
        'marketId': '1.112349276',
        'numberOfActiveRunners': 3,
        'numberOfRunners': 3,
        'numberOfWinners': 1,
        'runners': [{'handicap': 0.0,
        'selectionId': 47999,
        'status': 'ACTIVE',
        'totalMatched': 0.0},
        {'handicap': 0.0,
        'selectionId': 48756,
        'status': 'ACTIVE',
        'totalMatched': 0.0},
        {'handicap': 0.0,
        'selectionId': 58805,
        'status': 'ACTIVE',
        'totalMatched': 0.0}],
        'runnersVoidable': False,
        'status': 'OPEN',
        'totalAvailable': 1115211.12,
        'totalMatched': 108536.57,
        'version': 667246463}

        Comment

        Working...
        X