marketFilter: helper function to construct list to filter data for various...

Description Usage Arguments

Description

build a market filter object given the parameters available, this object can be used in the following methods competitions, countries, events, eventTypes, marketCatalogue, and marketTypes

Usage

1
2
3
4
5
6
marketFilter(bspOnly = NULL, competitionIds = NULL, eventIds = NULL,
  eventTypeIds = NULL, exchangeIds = NULL, inPlayOnly = NULL,
  marketBettingTypes = NULL, marketCountries = NULL,
  marketIds = NULL, from = NULL, to = NULL, marketTypeCodes = NULL,
  textQuery = NULL, turnInPlayEnabled = NULL, venues = NULL,
  withOrders = NULL)

Arguments

bspOnly

(boolean) Restrict to BSP (Betfair Starting Price) markets only, TRUE, or non-BSP markets, FALSE. If not specified then returns both BSP and non-BSP markets.

competitionIds

(string) Restrict markets by the competitions associated with the market.

eventIds

(string) Restrict markets by the event Id associated with the market.

eventTypeIds

(numeric) Restrict markets by event type associated with the market, ie. Football, Hockey, etc.

exchangeIds

(numeric) Restrict markets by the Exchange where the market operates. As of Jun 11, 2015, not available.

inPlayOnly

boolean Restrict to markets that are currently in play, TRUE, or not currently in play, FALSE. If not specified returns both.

marketBettingTypes

see section MarketBettingType in BettingEnums or developer.betfair.com Restrict to markets that match the betting type of the market, ie. Odds, Asian Handicap Singles, Asian Handicap Doubles.

marketCountries

string Restrict to markets that are in the specified country or countries.

marketIds

numeric Restrict markets by the market Id associated with the market.

from

string start time after specified date, format date as "YYYY-MM-DD" or with a time "YYYY-MM-DD 00:00:00".

to

string start time before specified date, format date as "YYYY-MM-DD" or with a time "YYYY-MM-DD 00:00:00".

marketTypeCodes

numeric Restrict to markets that match the type of the market, ie. MATCH_ODDS, HALF_TIME_SCORE. You should use this instead of relying on the market name as the market type codes are the same in all locales.

textQuery

string Restrict markets by any text associated with the market such as Name, Event, Competition, etc. You can include a wildcard (*) character, as long as it is not the first character.

turnInPlayEnabled

boolean Restrict to markets that will turn in play, TRUE, or will not turn in play, FALSE. If not specified returns both.

venues

string Restrict markets by the venue associated with the market. Currently, as of Jun 11, 2015, only Horse Racing markets have venues.

withOrders

see section OrderStatus in BettingEnums or developer.betfair.com Restrict to markets that I have one or more orders in these status.


durtal/betfaiR documentation built on May 15, 2019, 6:01 p.m.