Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

Type

...

Definitions


Anchor
MarketCatalogue
MarketCatalogue

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketFilter

Field name

Type

Required

Description

textQuery

String

 


Restrict markets by any text associated with the Event name. You can include a wildcard (*) character as long as it is not the first character. Please note - the textQuery field doesn't evaluate market or selection names.

exchangeIds

Set<String>

 


DEPRECATED

eventTypeIds

Set<String>

 


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

eventIds

Set<String>

 


Restrict markets by the event id associated with the market.

competitionIds

Set<String>

 


Restrict markets by the competitions associated with the market.

marketIds

Set<String>

 


Restrict markets by the market id associated with the market.

venues

Set<String>

 


Restrict markets by the venue associated with the market. Currently, only Horse

Racing

& Greyhound racing markets have venues.

bspOnly

boolean

 


Restrict to bsp markets only, if True or non-bsp markets if False. If not specified then returns both BSP and non-BSP markets

turnInPlayEnabled

boolean

 


Restrict to markets that will turn in play if True or will not turn in play if false. If not specified, returns both.

inPlayOnly

boolean

 


Restrict to markets that are currently in play if True or are not currently in play if false. If not specified, returns both.

marketBettingTypes

Set< MarketBettingType >

 


Restrict to markets that match the betting type of the market (i.e. Odds, Asian Handicap Singles, Asian Handicap Doubles or Line)

marketCountries

Set<String>

 


Restrict to markets that are in the specified country or countriesPlease note: the default value is 'GB' when the correct country code cannot be determined.

marketTypeCodes

Set<String>

 


Restrict to markets that match the type of the market (i.e., 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. Please note: All

marketTypes

market types are available via the

/wiki/spaces/BFAPIBETA/pages/1212459

listMarketTypes operations.

marketStartTime

TimeRange

 


Restrict to markets with a market start time before or after the specified date

withOrders

Set< OrderStatus >

 


Restrict to markets

that

where I have one or more orders in these

status

states.

raceTypes

Set<String>

 


Restrict

by race type (i.e. Hurdle, Flat, Bumper, Harness, Chase)

to markets of a specific raceType. Valid values are -Harness, Flat, Hurdle, Chase, Bumper, NH Flat, Steeple (AUS/NZ races), and NO_VALUE (when no valid race type has been mapped).   

For AUS/NZ races, the following definitions apply:

  • Flat’ – Used for standard ANZ thoroughbred races

  • Harness’ – Self-explanatory – used for Aus/NZ harness racing events.

  • Steeple’ – Used for Aus/NZ steeple chase races.

  • Hurdle’ - Used for Aus/NZ hurdle races.



Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketCatalogue

Information about a market

Field name

Type

Required

Description

marketId

String

(tick)

(tick)

The unique identifier for the market. MarketId's are prefixed with '1.'

marketName

String

(tick)

(tick)

The name of the market

marketStartTime

Date

 


The time this market starts at, only returned when the MARKET_START_TIME enum is passed in the marketProjections

description

MarketDescription

 


Details about the market

totalMatched

Double

 


The total amount of money matched on the marketPlease note:  The returned value is cached.  For the live total matched value please use listMarketBook.

runners

List<

List <RunnerCatalog>

 


The runners (selections) contained in the market

eventType

EventType

 


The Event Type the market is contained within

competition

Competition

 


The competition the market is contained within. Usually only applies to Football competitions

event

Event

 


The event the market is contained within



Anchor
MarketBook
MarketBook

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketBook

The dynamic data in a market

Field name

Type

Required

Description

marketId

String

(tick)

(tick)

The unique identifier for the market. MarketId's are prefixed with '1.'

isMarketDataDelayed

boolean

(tick)

(tick)

True if the data returned by listMarketBook will be delayed. The data may be delayed because you are not logged in with a funded account or you are using an Application Key that does not allow up to date data.

status

MarketStatus

 


The status of the market, for example OPEN, SUSPENDED, CLOSED (settled), etc.

betDelay

int

 


The number of seconds an order is held until it is submitted into the market. Orders are usually delayed when the market is in-play

bspReconciled

boolean

 


True if the market starting price has been reconciled

complete

boolean

 


If false, runners may be added to the market

inplay

boolean

 


True if the market is currently in play

numberOfWinners

int

 


The number of selections that could be settled as winners

numberOfRunners

int

 


The number of runners in the market

numberOfActiveRunners

int

 


The number of runners that are currently active. An active runner is a selection available for betting

lastMatchTime

Date

 


The most recent time an order was executed

totalMatched

double

 


The total amount matched

totalAvailable

double

 


The total amount of orders that remain unmatched

crossMatching

boolean

 


True if cross matching is enabled for this market.

runnersVoidable

boolean

 


True if runners in the market can be voided. Please note - this doesn't include horse racing markets under which bets are voided on non-runners with any applicable reduction factor applied/

version

long

 


The version of the market. The version increments whenever the market status changes, for example, turning in-play, or suspended when a goal is scored.

runners

List< Runner >

 


Information about the runners (selections) in the market.

keyLineDescription

KeyLineDescription

 


Description of a markets key line for valid market types



Anchor
RunnerCatalog
RunnerCatalog

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleRunnerCatalog

Information about the Runners (selections) in a market

Field name

Type

Required

Description

selectionId

long

(tick)

(tick)

The unique id for the selection. The same selectionId and runnerName pairs are used accross all Betfair markets which contain them. Please note: The selectionId can be mapped to the runner name using the output from listMarketCatalogue

runnerName

String

(tick)

(tick)

The name of the runner.

handicap

double

(tick)

(tick)

The handicap applies to market with the MarketBettingType ASIAN_HANDICAP_SINGLE_LINE & ASIAN_HANDICAP_DOUBLE_LINE only otherwise '0'

sortPriority

int

(tick)

(tick)

The sort priority of this runner. Indicates the order in which the runners are displayed on the Betfair Exchange website.

metadata

Map<String,String>

 


Metadata associated with the runner.  For a description of this data for Horse Racing, please see Runner Metadata Description



Anchor
Runner
Runner

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleRunner

The dynamic data about runners in a market

Field name

Type

Required

Description

selectionId

long

(tick)

(tick)

The unique id of the runner (selection). Please note - the same selectionId and runnerName pairs are used accross all Betfair markets which contain them.

handicap

double

(tick)

(tick)

The handicap.  Enter the specific handicap value (returned by RUNNER in listMaketBook) if the market is an Asian handicap market.

status

RunnerStatus

(tick)

(tick)

The status of the selection (i.e., ACTIVE, REMOVED, WINNER, PLACED, LOSER, HIDDEN) Runner status information is available for 90 days following market settlement.

adjustmentFactor

double

(tick)


The adjustment factor applied if the selection is removed

lastPriceTraded

double

 


The price of the most recent bet matched on this selection

totalMatched

double

 


The total amount matched on this runner

removalDate

Date

 


If date and time the runner was removed

sp

StartingPrices

 


The BSP related prices for this runner

ex

ExchangePrices

 


The Exchange prices available for this runner

orders

List< Order >

 


List of orders in the market

matches

List< Match >

 


List of matches (i.e, orders that have been fully or partially executed)

matchesByStrategy

Map<String,Matches>

 


List of matches for each strategy, ordered by matched data

...



Anchor
StartingPrices
StartingPrices

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleStartingPrices

Information about the Betfair Starting Price. Only available in BSP markets

Field name

Type

Required

Description

nearPrice

double

 


What the starting price would be if the market was reconciled now taking into account the SP bets as well as unmatched exchange bets on the same selection in the exchange. This data is cached and update every 60 seconds. Please note:

 Type

 Type Double may contain numbers, INF, -INF, and NaN.

farPrice

double

 


What the starting price would be if the market was reconciled now taking into account only the currently place SP bets. The Far Price is not as complicated but not as accurate and only accounts for money on the exchange at SP. This data is cached and updated every 60 seconds. Please note:

 Type

 Type Double may contain numbers, INF, -INF, and NaN.

backStakeTaken

List<

List<#PriceSize >

 


The total amount of back bets matched at the actual Betfair Starting Price. Pre-reconciliation, this field is zero for all prices except 1.01 (for Market on Close bets) and at the limit price for any Limit on Close bets.

layLiabilityTaken

List< PriceSize >

 


The lay amount matched at the actual Betfair Starting Price. Pre-reconciliation, this field is zero for all prices except 1000 (for Market on Close bets) and at the limit price for any Limit on Close bets.

actualSP

double

 


The final BSP price for this runner. Only available for a BSP market that

has been reconciled

has been reconciled. Please note: for REMOVED runners the actualSP will be returned as 'NaN. Value may be returned as 'Infinity' if no BSP can be calculated.



Anchor
ExchangePrices
ExchangePrices

 
Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleExchangePrices


Field name

Type

Required

Description

availableToBack

List< PriceSize >

 



availableToLay

List< PriceSize >

  



tradedVolume

List< PriceSize >

  





Anchor
Event
Event

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleEvent

Event

Field name

Type

Required

Description

id

String

 


The unique id for the event

name

String

 


The name of the event

countryCode

String

 


The ISO-2 code for the event.  A list of ISO-2 codes is available via http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2  Please note: default value is 'GB' when the correct country code cannot be determined.

timezone

String

 


This is timezone in which the event is taking place.

venue

String

 


venue

openDate

Date

 


The scheduled start date and time of the event. This is Europe/London (GMT) by default



Anchor
EventResult
EventResult

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleEventResult

Event Result

Field name

Type

Required

Description

event

Event

 


Event

marketCount

int

 


Count of markets associated with this event



Anchor
Competition
Competition

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleCompetition

Competition

Field name

Type

Required

Description

id

String

 


id

name

String

 


name



Anchor
CompetitionResult
CompetitionResult

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleCompetitionResult

Competition Result

Field name

Type

Required

Description

competition

Competition

 


Competition

marketCount

int

 


Count of markets associated with this competition

competitionRegion

String

 


Region in which this competition is happening



Anchor
EventType
EventType

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleEventType

EventType

Field name

Type

Required

Description

id

String

 


id

name

String

 


name



Anchor
EventTypeResult
EventTypeResult

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleEventTypeResult

EventType Result

Field name

Type

Required

Description

eventType

EventType

 


The ID identifying the Event Type

marketCount

int

 


Count of markets associated with this eventType



Anchor
MarketTypeResult
MarketTypeResult

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketTypeResult

MarketType Result

Field name

Type

Required

Description

marketType

String

 


Market Type

marketCount

int

 


Count of markets associated with this marketType



Anchor
CountryCodeResult
CountryCodeResult

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleCountryCodeResult

CountryCode Result

Field name

Type

Required

Description

countryCode

String

 


The ISO-2 code for the event.  A list of ISO-2 codes is available via http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

marketCount

int

 


Count of markets associated with this Country Code



Anchor
VenueResult
VenueResult

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleVenueResult

Venue Result

Field name

Type

Required

Description

venue

String

 


Venue

marketCount

int

 


Count of markets associated with this Venue



Anchor
TimeRange
TimeRange

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleTimeRange

TimeRange

Field name

Type

Required

Description

from

Date

 


from

to

Date

 


to



Anchor
TimeRangeResult
TimeRangeResult

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleTimeRangeResult

TimeRange Result

Field name

Type

Required

Description

timeRange

TimeRange

 


TimeRange

marketCount

int

 


Count of markets associated with this TimeRange



Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleOrder


 

Field name

Type

Required

Description

betId

String

(tick)

(tick)


orderType

OrderType

(tick)

(tick)

BSP Order type.

status

OrderStatus

(tick)

(tick)

Either EXECUTABLE (an unmatched amount remains) or EXECUTION_COMPLETE (no unmatched amount remains).

persistenceType

PersistenceType

(tick)

(tick)

What to do with the order at turn-in-play

side

Side

(tick)

(tick)

Indicates if the bet is a Back or a LAY.

For LINE markets customers either Buy a line (LAY bet, winning if outcome is greater than the taken line (price)) or Sell a line (BACK bet, winning if outcome is less than the taken line (price)) 

price

double

(tick)

(tick)

The price of the bet. Please note: LINE markets operate at even-money odds of 2.0. However, price for these markets refers to the line positions available as defined by the markets min-max range and interval steps 

size

double

(tick)

(tick)

The size of the bet.

bspLiability

double

(tick)

(tick)

Not to be confused with size. This is the liability of a given BSP bet.

placedDate

Date

(tick)

(tick)

The date, to the second, the bet was placed.

avgPriceMatched

double

 


The average price matched at. Voided match fragments are removed from this average calculation. For MARKET_ON_CLOSE BSP bets this reports the matched SP price following the SP reconciliation process. This value is not meaningful for activity on LINE markets and is not guaranteed to be returned or maintained for these markets.

sizeMatched

double

 


The current amount of this bet that was matched.

sizeRemaining

double

 


The current amount of this bet that is unmatched.

sizeLapsed

double

 


The current amount of this bet that was lapsed.

sizeCancelled

double

 


The current amount of this bet that was cancelled.

sizeVoided

double

 


The current amount of this bet that was voided.

customerOrderRef

CustomerOrderRef

 


The customer order reference sent for this bet

customerStrategyRef

CustomerStrategyRef

 


The customer strategy reference sent for this bet




Anchor
Match
Match

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMatch

An individual bet Match, or rollup by price or avg price. Rollup depends on the requested MatchProjection

Field name

Type

Required

Description

betId

String

 


Only present if no rollup

matchId

String

 


Only present if no rollup

side

Side

(tick)

(tick)

Indicates if the bet is a Back or a LAY

price

double

(tick)

(tick)

Either actual match price or avg match price depending on rollup. This value is not meaningful for activity on LINE markets and is not guaranteed to be returned or maintained for these markets. 

size

double

(tick)

(tick)

Size matched at in this fragment, or at this price or avg price depending on rollup

matchDate

Date

 


Only present if no rollup

...



Anchor
MarketVersion
MarketVersion

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketVersion

Market version

Field name

Type

Required

Description

version

long

 


A non-monotonically increasing number indicating market changes

...



Anchor
MarketDescription
MarketDescription

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketDescription

Market definition

Field name

Type

Required

Description

persistenceEnabled

boolean

(tick)

(tick)

If 'true' the market supports 'Keep' bets if the market is to be turned in-play

bspMarket

boolean

(tick)

(tick)

If 'true' the market supports Betfair SP betting

marketTime

Date

(tick)

(tick)

The market start time. This is the scheduled start time of the market e.g. horse race or football match etc.

suspendTime

Date

(tick)

(tick)

The market suspend time. This is the next time the market will be suspended for betting and is normally the same as the marketTime.

settleTime

Date

 


settled time

bettingType

MarketBettingType

(tick)

(tick)

See MarketBettingType

turnInPlayEnabled

boolean

(tick)

(tick)

If 'true' the market is set to turn in-play

marketType

String

(tick)

(tick)

Market base type

regulator

String

(tick)

(tick)

The market regulator. Value include “GIBRALTAR REGULATOR" (.com), MR_ESP (Betfair.es markets), MR_IT (Betfair.it). GIBRALTAR REGULATOR = MR_INT in the Stream API

marketBaseRate

double

(tick)

(tick)

The commission rate applicable to the market

discountAllowed

boolean

(tick)

(tick)

Indicates whether or not the user's discount rate is taken into account on this market. If ‘false’ all users will be charged the same commission rate, regardless of discount rate.

wallet

String

 


The wallet to which the market belongs.

rules

String

 


The market rules.

rulesHasDate

boolean

 


Indicates whether rules have a date included.

eachWayDivisor

double

 


The divisor is returned for the marketType EACH_WAY only and refers to the

fraction

fraction of the win odds at which the place portion of an each way bet is settled

clarifications

String

 


Any additional information regarding the market

lineRangeInfo

MarketLineRangeInfo

 


Line range info for line markets

raceType

String

 


An external identifier of a race type

priceLadderDescription

PriceLadderDescription

 


Details about the price ladder in use for this market.



Anchor
MarketRates
MarketRates

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketRates

Market Rates

Field name

Type

Required

Description

marketBaseRate

double

(tick)

(tick)

marketBaseRate

discountAllowed

boolean

(tick)

(tick)

discountAllowed



Anchor
MarketLicence
MarketLicence

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketLicence

Market Licence

Field name

Type

Required

Description

wallet

String

(tick)

(tick)

The wallet from which funds will be taken when betting on this market

rules

String

 


The rules for this market

rulesHasDate

boolean

 


The market's start date and time are relevant to the rules.

clarifications

String

 


Clarifications to the rules for the market



Anchor
MarketLineRangeInfo
MarketLineRangeInfo

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketLineRangeInfo

Market Line and Range Info

Field name

Type

Required

Description

maxUnitValue

double

(tick)

(tick)

maxPrice - Maximum value for the outcome, in market units for this market (eg 100 runs)

minUnitValue

double

(tick)

(tick)

minPrice - Minimum value for the outcome, in market units for this market (eg 0 runs) 

interval

double

(tick)

(tick)

interval - The odds ladder on this market will be between the range of minUnitValue and maxUnitValue, in increments of the inverval value.e.g. If minUnitValue=10 runs, maxUnitValue=20 runs, interval=0.5 runs, then valid odds include 10, 10.5, 11, 11.5 up to 20 runs.

marketUnit

String

(tick)

(tick)

unit - The type of unit the lines are incremented in by the interval (e.g: runs, goals or seconds.



Anchor
PriceSize
PriceSize

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titlePriceSize


Field name

Type

Required

Description

price

double

(tick)

(tick)

The price available

size

double

(tick)

(tick)

The stake available


Anchor
ClearedOrderSummary
ClearedOrderSummary

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleClearedOrderSummary

 Summary of a cleared order.

Field name

Type

Required

Description

eventTypeId

EventTypeId

 


The id of the event type bet on. Available at EVENT_TYPE groupBy level or lower.

eventId

EventId

 


The id of the event bet on. Available at EVENT groupBy level or lower.

marketId

MarketId

 


The id of the market bet on. Available at MARKET groupBy level or lower.

selectionId

SelectionId

 


The id of the selection bet on. Available at RUNNER groupBy level or lower.

handicap

Handicap

 


The handicap.  Enter the specific handicap value (returned by RUNNER in listMaketBook) if the market is an Asian handicap market. Available at MARKET groupBy level or lower.

betId

BetId

 


The id of the bet. Available at BET groupBy level.

placedDate

Date

 


The date the bet order was placed by the customer. Only available at BET groupBy level.

persistenceType

PersistenceType

 


The turn in play persistence state of the order at bet placement time. This field will be empty or omitted on true SP bets. Only available at BET groupBy level.

orderType

OrderType

 


The type of bet (e.g standard limited-liability Exchange bet (LIMIT), a standard BSP bet (MARKET_ON_CLOSE), or a minimum-accepted-price BSP bet (LIMIT_ON_CLOSE)). If the bet has a OrderType of MARKET_ON_CLOSE and a persistenceType of MARKET_ON_CLOSE then it is a bet which has transitioned from LIMIT to MARKET_ON_CLOSE. Only available at BET groupBy level.

side

Side

 


Whether the bet was a back or lay bet. Available at SIDE groupBy level or lower.

itemDescription

ItemDescription

 


A container for all the ancillary data and localised text valid for this Item

betOutcome

String

 


The settlement outcome of the bet. Tri-state (WIN/LOSE/PLACE) to account for Each Way bets where the place portion of the bet won but the win portion lost. The profit/loss amount in this case could be positive or negative depending on the price matched at. Only available at BET groupBy level.

priceRequested

Price

 


The average requested price across all settled bet orders under this Item. Available at SIDE groupBy level or lower. For LINE markets this is the line position requested. For LINE markets this is the line position requested. 

settledDate

Date

 


The date and time the bet order was settled by Betfair. Available at SIDE groupBy level or lower.

lastMatchedDate

Date

 


The date and time the last bet order was matched by Betfair. Available on Settled orders only.

betCount

int

 


The number of actual bets within this grouping (will be 1 for BET groupBy)

commission

Size

 


The cumulative amount of commission paid by the customer across all bets under this Item, in the account currency. Available at EXCHANGE, EVENT_TYPE, EVENT and MARKET level groupings only.

priceMatched

Price

 


The average matched price across all settled bets or bet fragments under this Item. Available at SIDE groupBy level or lower. For LINE markets this is the line position matched at. 

priceReduced

boolean

 


If true, then the matched price was affected by a reduction factor due to of a runner removal from this Horse Racing market.

sizeSettled

Size

 


The cumulative bet size that was settled as matched or voided under this Item, in the account currency. Available at SIDE groupBy level or lower.

profit

Size

 


The profit or loss (negative profit) gained on this line, in the account currency

sizeCancelled

Size

 


The amount of the bet that was available to be matched, before cancellation or lapsing, in the account currency

customerOrderRef

String

 


The order reference defined by the customer for the bet order

customerStrategyRef

String

 


The strategy reference defined by the customer for the bet order

...



Anchor
ClearedOrderSummaryReport
ClearedOrderSummaryReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleClearedOrderSummaryReport

A container representing search results.

Field name

Type

Required

Description

clearedOrders

List<ClearedOrderSummary>

(tick)

(tick)

The list of cleared orders returned by your query. This will be a valid list (i.e. empty or non-empty but never 'null').

moreAvailable

boolean

(tick)

(tick)

Indicates whether there are further result items beyond this page. Note that underlying data is highly time-dependent and the subsequent search orders query might return an empty result.


Anchor
ItemDescription
ItemDescription

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
title ItemDescription

This object contains some text which may be useful to render a betting history view. It offers no long-term warranty as to the correctness of the text.

Field name

Type

Required

Description

eventTypeDesc

String

 


The event type name, translated into the requested locale. Available at EVENT_TYPE groupBy or lower.

eventDesc

String

 


The eventName, or openDate + venue, translated into the requested locale. Available at EVENT groupBy or lower.

marketDesc

String

 


The market name or racing market type ("Win", "To Be Placed (2 places)", "To Be Placed (5 places)" etc) translated into the requested locale. Available at MARKET groupBy or lower.

marketType

String

 


The market type e.g. MATCH_ODDS, PLACE, WIN etc.

marketStartTime

Date

 


The start time of the market (in ISO-8601 format, not translated). Available at MARKET groupBy or lower.

runnerDesc

String

 


The runner name, maybe including the handicap, translated into the requested locale. Available at BET groupBy.

numberOfWinners

int

 


The number of winners on a market. Available at BET groupBy.

eachWayDivisor

double

 


The divisor is returned for the marketType EACH_WAY only and refers to the

fraction

fraction of the win odds at which the place portion of an each way bet is settled


Anchor
CurrentItemDescription
CurrentItemDescription

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleCurrentItemDescription

CurrentItemDescription

This object contains ancillary information about the item

Field name

Type

Required

Description

marketVersion

MarketVersion


The relevant version of the market for this item



Anchor
RunnerId
RunnerId

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleRunnerId

This object contains the unique identifier for a runner

Field name

Type

Required

Description

marketId

MarketId

The id of the market bet on

selectionId

SelectionId

The id of the selection bet on

handicap

Handicap

 


The handicap associated with the runner in case of asian handicap markets, otherwise returns '0.0'.



Anchor
CurrentOrderSummaryReport
CurrentOrderSummaryReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleCurrentOrderSummaryReport

A container representing search results.

Field name

Type

Required

Description

currentOrders

List< CurrentOrderSummary >

(tick)

(tick)

The list of current orders returned by your query. This will be a valid list (i.e. empty or non-empty but never 'null').

moreAvailable

boolean

(tick)

(tick)

Indicates whether there are further result items beyond this page. Note that underlying data is highly time-dependent and the subsequent search orders query might return an empty result.



Anchor
CurrentOrderSummary
CurrentOrderSummary

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleCurrentOrderSummary

Summary of a current order.

Field name

Type

Required

Description

betId

String

(tick)

(tick)

The bet ID of the original place order.

marketId

String

(tick)

(tick)

The market id the order is for.

selectionId

long

(tick)

(tick)

The selection id the order is for.

handicap

double

(tick)

(tick)

The handicap associated with the runner in case of Asian handicap markets, null otherwise.

priceSize

PriceSize

(tick)

(tick)

The price and size of the bet.

bspLiability

double

(tick)

(tick)

Not to be confused with size. This is the liability of a given BSP bet.

side

Side

(tick)

(tick)

BACK/LAY

status

OrderStatus

(tick)

(tick)

Either EXECUTABLE (an unmatched amount remains) or EXECUTION_COMPLETE (no unmatched amount remains).

persistenceType

PersistenceType

(tick)

(tick)

What to do with the order at turn-in-play.

orderType

OrderType

(tick)

(tick)

BSP Order type.

placedDate

Date

(tick)

(tick)

The date, to the second, the bet was placed.

matchedDate

Date

(tick)

(tick)

The date, to the second, of the last matched bet fragment (where applicable)

averagePriceMatched

double

 


The average price matched at. Voided match fragments are removed from this average calculation. The price is automatically adjusted in the event of non runners being declared with applicable reduction factors. Please note: This value is not meaningful for activity on LINE markets and is not guaranteed to be returned or maintained for these markets. 

sizeMatched

double

 


The current amount of this bet that was matched.

sizeRemaining

double

 


The current amount of this bet that is unmatched.

sizeLapsed

double

 


The current amount of this bet that was lapsed.

sizeCancelled

double

 


The current amount of this bet that was cancelled.

sizeVoided

double

 


The current amount of this bet that was voided.

regulatorAuthCode

String

 


The regulator authorisation code.

regulatorCode

String

 


The regulator Code.

customerOrderRef

String

 


The order reference defined by the customer for this bet

customerStrategyRef

String

 


The strategy reference defined by the customer for this bet

currentItemDescription

CurrentItemDescription


A container for all the ancillary data for this Item



Anchor
PlaceInstruction
PlaceInstruction

 
Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titlePlaceInstruction

Instruction to place a new order

Field name

Type

Required

Description

orderType

OrderType

(tick)

(tick)


selectionId

long

(tick)

(tick)

The selection_id.

handicap

double

 


The handicap associated with the runner in case of Asian handicap markets (e.g. marketTypes ASIAN_HANDICAP_DOUBLE_LINE, ASIAN_HANDICAP_SINGLE_LINE) null otherwise.

side

Side

(tick)

(tick)

Back or Lay

limitOrder

LimitOrder

 


A simple exchange bet for immediate execution

limitOnCloseOrder

LimitOnCloseOrder

 


Bets are matched if, and only if, the returned starting price is better than a specified price. In the case of back bets, LOC bets are matched if the calculated starting price is greater than the specified price. In the case of lay bets, LOC bets are matched if the starting price is less than the specified price. If the specified limit is equal to the starting price, then it may be matched, partially matched, or may not be matched at all, depending on how much is needed to balance all bets against each other (MOC, LOC and normal exchange bets)

marketOnCloseOrder

MarketOnCloseOrder

 


Bets remain unmatched until the market is reconciled. They are matched and settled at a price that is representative of the market at the point the market is turned in-play. The market is reconciled to find a starting price and MOC bets are settled at whatever starting price is returned. MOC bets are always matched and settled, unless a starting price is not available for the selection. Market on Close bets can only be placed before the starting price is determined

customerOrderRef

String

 


An optional reference customers can set to identify instructions.. No validation will be done on uniqueness and the string is limited 
to 32 characters. If an empty string is provided it will be treated as null.



Anchor
PlaceExecutionReport
PlaceExecutionReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titlePlaceExecutionReport


Field name

Type

Required

Description

customerRef

String

  


Echo of the customerRef if passed.

status

ExecutionReportStatus

(tick)

(tick)


errorCode

ExecutionReportErrorCode

  



marketId

String

 


Echo of marketId passed

instructionReports

List< PlaceInstructionReport >

  





Anchor
LimitOrder
LimitOrder

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleLimitOrder

Place a new LIMIT order (simple exchange bet for immediate execution)

Field name

Type

Required

Description

size

double

(tick)

(tick)

The size of the bet. Please note: For market type EACH_WAY. The total stake = size x 2

price

double

(tick)

(tick)

The limit price. For LINE markets, the price at which the bet is settled and struck will always be 2.0 (Evens). On these bets, the Price field is used to indicate the line value which is being bought or sold 

persistenceType

PersistenceType

(tick)

(tick)

What to do with the order at turn-in-play

timeInForce

TimeInForce

 


The type of TimeInForce value to use. This value takes precedence over any PersistenceType value chosen. 
If this attribute is populated along with the PersistenceType field, then the PersistenceType will be 
ignored. When using FILL_OR_KILL for a Line market the Volume Weighted Average Price (VWAP) functionality is disabled

minFillSize

Size

 


An optional field used if the TimeInForce attribute is populated. 
If specified without TimeInForce then this field is ignored. 
If no minFillSize is specified, the order is killed unless the entire size can be matched. 
If minFillSize is specified, the order is killed unless at least the minFillSize can be matched. 
The minFillSize cannot be greater than the order's size. 
If specified for a BetTargetType and FILL_OR_KILL order, then this value will be ignored

betTargetType

BetTargetType

 


An optional field to allow betting to a targeted PAYOUT or BACKERS_PROFIT. 
It's invalid to specify both a Size and BetTargetType 
Matching provides best execution at the requested price or better up to the payout or profit. 
If the bet is not matched completely and immediately, the remaining portion enters the unmatched pool of bets on the exchange

BetTargetType bets are invalid for LINE markets

betTargetSize

Size

 


An optional field which must be specified if BetTargetType is specified for this order 
The requested outcome size of either the payout or profit. 
This is named from the backer's perspective. For Lay bets the profit represents the bet's liability



Anchor
LimitOnCloseOrder
LimitOnCloseOrder

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleLimitOnCloseOrder

Place a new LIMIT_ON_CLOSE bet

Field name

Type

Required

Description

liability

double

(tick)

(tick)

The size of the bet. See Min BSP Liability

price

double

(tick)

(tick)

The limit price of the bet if LOC



Anchor
MarketOnCloseOrder
MarketOnCloseOrder

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketOnCloseOrder

Place a new MARKET_ON_CLOSE bet

Field name

Type

Required

Description

liability

double

(tick)

(tick)

The size of the bet.



Anchor
PlaceInstructionReport
PlaceInstructionReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titlePlaceInstructionReport

Response to a PlaceInstruction

Field name

Type

Required

Description

status

InstructionReportStatus

(tick)

(tick)

whether cause

Whether the command succeeded or failed

errorCode

InstructionReportErrorCode

 


Cause of failure, or null if the command succeeds

orderStatus

OrderStatus

 


The status of the order, if the instruction succeeded.

 

If the instruction

was

is unsuccessful, no value is provided.  
Please note:  by default, this field is not returned for MARKET_ON_CLOSE and LIMIT_ON_CLOSE orders.

instruction

PlaceInstruction

(tick)

(tick)

The instruction that was requested

betId

String

 


The bet ID of the new bet. Will be null on failure or if the order was placed asynchronously.

placedDate

Date

 


Will be null if the order was placed asynchronously

averagePriceMatched

Price

 


Will be null if the order was placed asynchronously. This value is not meaningful for activity on LINE markets and is not guaranteed to be returned or maintained

for these

for these markets. 

sizeMatched

Size

 


Will be null if the order was placed asynchronously



Anchor
CancelInstruction
CancelInstruction

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleCancelInstruction

Instruction to fully or partially cancel an order (only applies to LIMIT orders). Please note: the CancelInstruction report won't be returned for marketId account level cancel instructions.

Field name

Type

Required

Description

betId

String


The betId

sizeReduction

double

 


If supplied then this is a partial cancel.  Should be set to 'null' if no size reduction is required.



Anchor
CancelExecutionReport
CancelExecutionReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleCancelExecutionReport


Field name

Type

Required

Description

customerRef

String

  


Echo of the customerRef if passed.

status

ExecutionReportStatus

(tick)

(tick)


errorCode

ExecutionReportErrorCode

  



marketId

String

 


Echo of marketId passed

instructionReports

List< CancelInstructionReport >

  





Anchor
ReplaceInstruction
ReplaceInstruction

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleReplaceInstruction

Instruction to replace a LIMIT or LIMIT_ON_CLOSE order at a new price. Original order will be cancelled and a new order placed at the new price for the remaining stake.

Field name

Type

Required

Description

betId

String

(tick)

(tick)

Unique identifier for the bet

newPrice

double

(tick)

(tick)

The price to replace the bet at



Anchor
ReplaceExecutionReport
ReplaceExecutionReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleReplaceExecutionReport


Field name

Type

Required

Description

customerRef

String

  


Echo of the customerRef if passed.

status

ExecutionReportStatus

(tick)

(tick)


errorCode

ExecutionReportErrorCode

  



marketId

String

 


Echo of marketId passed

instructionReports

List< ReplaceInstructionReport >

  





Anchor
ReplaceInstructionReport
ReplaceInstructionReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleReplaceInstructionReport


Field name

Type

Required

Description

status

InstructionReportStatus

(tick)

(tick)

whether the command succeeded or failed

errorCode

InstructionReportErrorCode

 Cancelation


cause of failure, or null if command succeeds

cancelInstructionReport

CancelInstructionReport

 


Cancellation report for the original order

placeInstructionReport

PlaceInstructionReport

 


Placement report for the new order



Anchor
CancelInstructionReport
CancelInstructionReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleCancelInstructionReport


Field name

Type

Required

Description

status

InstructionReportStatus

(tick)

(tick)

whether the command succeeded or failed

errorCode

InstructionReportErrorCode

 


cause of failure, or null if command succeeds

instruction

CancelInstruction

  


The instruction that was requested

sizeCancelled

double

(tick)

(tick)


cancelledDate

Date

 

 





Anchor
UpdateInstruction
UpdateInstruction

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleUpdateInstruction

Instruction to update LIMIT bet's persistence of an order that do not affect exposure

Field name

Type

Required

Description

betId

String

(tick)

(tick)

Unique identifier for the bet

newPersistenceType

PersistenceType

(tick)

(tick)

The new persistence type to update this bet to



Anchor
UpdateExecutionReport
UpdateExecutionReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleUpdateExecutionReport


Field name

Type

Required

Description

customerRef

String

  


Echo of the customerRef if passed.

status

ExecutionReportStatus

(tick)

(tick)


errorCode

ExecutionReportErrorCode

  



marketId

String

 


Echo of marketId passed

instructionReports

List< UpdateInstructionReport >

  





Anchor
UpdateInstructionReport
UpdateInstructionReport

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleUpdateInstructionReport


Field name

Type

Required

Description

status

InstructionReportStatus

(tick)

(tick)

whether the command succeeded or failed

errorCode

InstructionReportErrorCode

 


cause of failure, or null if command succeeds

instruction

UpdateInstruction

(tick)

(tick)

The instruction that was requested



Type

Required

Description

Anchor
PriceProjection
PriceProjection

 
Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titlePriceProjection

Selection criteria of the returning price data

Field name

Type

Required

Description

priceData

Set< PriceData >

 


The basic price data you want to receive in the response.

exBestOffersOverrides

ExBestOffersOverrides

OffersOverrides


Options to alter the default representation of best offer prices Applicable to EX_BEST_OFFERS priceData selection

virtualise

boolean

 


Indicates if the returned prices should include virtual prices. Applicable to EX_BEST_OFFERS and EX_ALL_OFFERS priceData selections, default value is false. Please note: This must be set to 'true' replicate the display of prices on the Betfair Exchange website.

rolloverStakes

boolean

 


Indicates if the volume returned at each price point should be the absolute value or a cumulative sum of volumes available at the price and all better prices. If unspecified defaults to false. Applicable to EX_BEST_OFFERS and EX_ALL_OFFERS price projections. Not supported as yet.



Anchor
ExBestOffersOverrides
ExBestOffersOverrides

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleExBestOffersOverrides

Options to alter the default representation of best offer prices

Field name

Type

Required

Description

bestPricesDepth

int

 


The maximum number of prices to return on each side for each runner. If unspecified defaults to 3.

Maximum

The maximum returned price depth returned is 10.

rollupModel

RollupModel

 


The model to use when rolling up available sizes. If unspecified defaults to STAKE rollup model with rollupLimit of minimum stake in the specified currency.

rollupLimit

int

 


The volume limit to use when rolling up returned sizes. The exact definition of the limit depends on the rollupModel. If no limit is provided it will use minimum stake as default the value. Ignored if no rollup model is specified.

rollupLiabilityThreshold

double

 


Only applicable when rollupModel is MANAGED_LIABILITY. The rollup model switches from being stake-based to liability-based at the smallest lay price which is >= rollupLiabilityThreshold.service level default (TBD). Not supported as yet.

rollupLiabilityFactor

int

 


Only applicable when rollupModel is MANAGED_LIABILITY. (rollupLiabilityFactor * rollupLimit) is the minimum

liabilty

liability the user is deemed to be comfortable with. After the rollupLiabilityThreshold price subsequent volumes will be rolled up to minimum value such that the liability >= the minimum liability.service level default (5). Not supported as yet.

...



Anchor
MarketProfitAndLoss
MarketProfitAndLoss

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleMarketProfitAndLoss

Profit and loss in a market

Field name

Type

Required

Description

marketId

String

 


The unique identifier for the market

commissionApplied

double

 


The commission rate applied to P&L values. Only returned if netOfCommision option is requested

profitAndLosses

List<RunnerProfitAndLoss>

 


Calculated profit and loss data.


Anchor
RunnerProfitAndLoss
RunnerProfitAndLoss

 
Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleRunnerProfitAndLoss

Profit and loss if selection is wins or loses 


Field name

Type

Required

Description

selectionId

SelectionId

Selection


The unique identifier for the selection

ifWin

double

 


Profit or loss for the market if this selection is the winner.

ifLose

double

 


Profit or loss for the market if this selection is the loser. Only returned for multi-winner odds markets.

ifPlace

double

 


Profit or loss for the market if this selection is placed. Applies to marketType EACH_WAY only.


Anchor
PriceLadderDescription
PriceLadderDescription
PriceLadderDescription

Description of the price ladder type and any related data.

Field name

Type

Required

Description

type

PriceLadderType

The type of price ladder.

...


Anchor
KeyLineSelection
KeyLineSelection
KeyLineSelection

Description of a markets key line selection, comprising the selectionId and handicap of the team it is applied to.

Field name

Type

Required

Description

selectionId

SelectionId

Selection ID of the runner in the key line handicap.

handicap

Handicap

Handicap value of the key line.

...


Anchor
#KeyLineDescription
#KeyLineDescription

KeyLineDescription

A list of KeyLineSelection objects describing the key line for the market

Field name

Type

Required

Description

keyLine

List<KeyLineSelection>

A list of KeyLineSelection objects

...


Anchor
TypeAliases
TypeAliases

Panel
bgColor#FFFFFF
titleBGColor#FFCC33
titleType Aliases
Type aliasesType aliases


Alias

Type

Anchor
MarketType
MarketType

MarketType

String

Anchor
Venue
Venue

Venue

String

Anchor
MarketId
MarketId

MarketId

String

Anchor
SelectionId
SelectionId

SelectionId

long

Anchor
Handicap
Handicap

Handicap

double

Anchor
EventId
EventId

EventId

String

Anchor
EventTypeId
EventTypeId

EventTypeId

String

Anchor
CountryCode
CountryCode

CountryCode

String

Anchor
ExchangeId
ExchangeId

ExchangeId

String

Anchor
CompetitionId
CompetitionId

CompetitionId

String

Anchor
Price
Price

Price

double

Anchor
Size
Size

Size

double

Anchor
BetId
BetId

BetId

String

Anchor
MatchId
MatchId

MatchId

String

CustomerOrderRef

String

 CustomerStrategyRef

 CustomerStrategyRef

String