Hello,
I've just started using the API and am new to it all!
I'm doing something like this to filter upcoming races
However, as well as filtering by venue, I want to filter by horse name but I can't work out how do it.
I looked at the link below for any way to filter the market by horse name but there wasn't anything that i saw.
https://api.developer.betfair.com/se...s-MarketFilter
More simply, all I'm trying to do is use the API to bet on a horse of a known name.
I hope it's something simple I've missed. Thanks for any help!
I've just started using the API and am new to it all!
I'm doing something like this to filter upcoming races
Code:
$params = '{"filter":{"eventTypeIds":["' . $horseRacingEventTypeId . '"],
"venues":["Brighton"],
"marketTypeCodes":["WIN"],
"marketStartTime":{"from":"' . date('c') . '"}},
"sort":"FIRST_TO_START",
"maxResults":"20",
"marketProjection": [
"MARKET_START_TIME",
"RUNNER_DESCRIPTION",
"RUNNER_METADATA",
"EVENT_TYPE",
"EVENT",
"COMPETITION"
]}';
$jsonResponse = sportsApingRequest($appKey, $sessionToken, 'listMarketCatalogue', $params);
I looked at the link below for any way to filter the market by horse name but there wasn't anything that i saw.
https://api.developer.betfair.com/se...s-MarketFilter
More simply, all I'm trying to do is use the API to bet on a horse of a known name.
I hope it's something simple I've missed. Thanks for any help!



Comment