getting Betfair fixed odds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • denimen.
    Junior Member
    • Feb 2013
    • 14

    #1

    getting Betfair fixed odds

    Hi,

    I was wondering if there is a way to get betfair fixed odds:
    Currently, I'm getting the exchange odds, via php.

    PHP Code:
    function listMarketBook($appKey$sessionToken$marketID)
    {
        
    $jsonResponse sportsApingRequest($appKey$sessionToken'listMarketBook''{"marketIds": ['.$marketID.'], "priceProjection":{"priceData": ["EX_BEST_OFFERS"]}}');
        return 
    $jsonResponse[0]->result;

    In the manual i saw this MarketBettingType where parameter FIXED_ODDS gets me these fixed odds, and I'm wondering whre to put this parameter.???

    Anyone tried this, any help??

    Thanks,
    Denimen
  • denimen.
    Junior Member
    • Feb 2013
    • 14

    #2
    UPDATE:

    I've found a way to filter out FIXED_ODDS in listMarketCatalouge but it looks like that this one is deprecated .. so if anyone knows any other way to filter out fixed odds (now called MULTIPLES on frontend), give us a hint

    PHP Code:
    function listMarketCatalogue($appKey$sessionToken$eventID)

        
    $jsonResponse sportsApingRequest($appKey$sessionToken'listMarketCatalogue''{
            "filter":{
                "eventIds": ['
    .$eventID.']
            ,"marketBettingTypes": ["FIXED_ODDS"] 
            }
            ,"maxResults": 1000
            ,"marketProjection": ["COMPETITION","RUNNER_DESCRIPTION"]
            }'
    );
        return 
    $jsonResponse[0]->result;

    Thanks

    Comment

    Working...
    X