Lead

October 30, 2013 19:50:19

Tags : :

A question for you all - especially you scrapers...
This javascript code will pull back a list of current bets for a given market, if you open the console in Chrome and run it, assuming you are logged in.

    document.body.appendChild(document.createElement("script")).src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js";
    var pls = "{\"exchangeOpenBetQuery\":{\"marketIds\":[1.YOURMARKETIDHERE],\"rollUp\":\"MATCH\",\"openBetsLimit\":200,\"includeSettledProfit\":true}}";
    
var jqxhr = $.ajax({url: "http://www.betfair.com/betslip-service/readonly/v1.1/fetch", type:"POST", data: pls, contentType:"application/json", dataType:"json", success: function(data) {  console.log( data );}}) 

My question is: is there a way to get back all current bets for all markets?  I tried leaving the marketIds parameter out, setting it to a blank list etc, but no bets come back.