Json Message for Matched and Unmatched bets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shlodge
    Junior Member
    • Jun 2009
    • 7

    #1

    Json Message for Matched and Unmatched bets

    Hi,

    I am trying to get the total "matched" and "unmatched" amounts for the event (event id 1.112963196). I understand that the data should be per selection id.

    This is my attempt at the code, and I am getting errors, can someone please help me with an example of the correct coding\Syntax.

    {"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.112963196"],"orderProjection":["ALL"]}, "id": 1}

    Thanks,

    Shlodge
  • AlgoTrader
    Junior Member
    • Mar 2012
    • 243

    #2
    ["ALL"] is array, "ALL" is string. See the matchProjection example:

    Code:
    {
      "jsonrpc": "2.0",
      "id": 3,
      "method": "SportsAPING/v1.0/listMarketBook",
      "params": {
        "marketIds": [
          "1.112993626"
        ],
        "matchProjection": "NO_ROLLUP",
        "priceProjection": {
          "priceData": [
            "EX_ALL_OFFERS",
            "EX_TRADED"
          ]
        }
      }
    }
    Last edited by AlgoTrader; 25-02-2014, 02:28 PM.
    Betfair Bots Made Easy

    Comment

    • Shlodge
      Junior Member
      • Jun 2009
      • 7

      #3
      Oh wow! Thank you! :-)

      Comment

      Working...
      X