Betting API

Betting API

Karma - Page Builder

Endpoints

Use these endpoints for Betting API requests. All API requests should be sent as POST.

Quick guidance: use the Global Exchange endpoints unless you are a New Zealand customer. Spanish Exchange customers should also review Betting on Spanish Exchange.

Global Exchange

Interface

Endpoint

JSON-RPC Prefix

Method example

JSON-RPC

https://api.betfair.com/exchange/betting/json-rpc/v1

<method>

SportsAPING/v1.0/listMarketBook

JSON REST

https://api.betfair.com/exchange/betting/rest/v1.0/

—

listMarketBook/

New Zealand customers: use the New Zealand-specific endpoints below.

New Zealand Customers

Interface

Endpoint

JSON-RPC Prefix

Method example

JSON-RPC

https://api.betfair.com.au/exchange/betting/json-rpc/v1

<method>

SportsAPING/v1.0/listMarketBook

JSON REST

https://api.betfair.com.au/exchange/betting/rest/v1.0/

—

listMarketBook/

Operation Summary

The table below summarises the main Betting API operations, grouped by what you are trying to do.

Category

Operation

Returns

Use this to…

Discover markets

listEventTypes

List<EventTypeResult>

Find the sports associated with markets selected by a MarketFilter.

Discover markets

listCompetitions

List<CompetitionResult>

Find competitions associated with markets selected by a MarketFilter. Horse racing and greyhound event types are associated with venues instead.

Discover markets

listTimeRanges

List<TimeRangeResult>

Find time ranges, at the requested granularity, for markets selected by a MarketFilter.

Discover markets

listEvents

List<EventResult>

Find events, such as Reading vs. Man United, associated with markets selected by a MarketFilter.

Discover markets

listMarketTypes

List<MarketTypeResult>

Find market types such as MATCH_ODDS or NEXT_GOAL. Market types are the same regardless of locale.

Discover markets

listCountries

List<CountryCodeResult>

Find countries associated with markets selected by a MarketFilter.

Discover markets

listVenues

List<VenueResult>

Find venues such as Cheltenham or Ascot. Only horse racing and greyhound markets are associated with venues.

Market data

listMarketCatalogue

List<MarketCatalogue>

Retrieve stable information about published ACTIVE or SUSPENDED markets.

Market data

listMarketBook

List<MarketBook>

Retrieve dynamic market data including prices, market and selection status, traded volume, and order status.

Market data

listRunnerBook

List<MarketBook>

Retrieve dynamic data for a specific runner in a market, including prices, status, traded volume, and order status.

Profit and loss

listMarketProfitAndLoss

List<MarketProfitAndLoss>

Retrieve profit and loss for open markets, calculated using matched bets and optionally settled bets.

Orders

listCurrentOrders

CurrentOrderSummaryReport

Retrieve your current orders.

Orders

listClearedOrders

ClearedOrderSummaryReport

Retrieve settled bets based on bet status, ordered by settled date.

Orders

placeOrders

PlaceExecutionReport

Place new orders into a market.

Orders

cancelOrders

CancelExecutionReport

Cancel all bets, all bets on a market, or fully or partially cancel specific orders on a market.

Orders

replaceOrders

ReplaceExecutionReport

Replace orders using a bulk cancel followed by a bulk place. The cancel is completed before the new orders are placed.

Orders

updateOrders

UpdateExecutionReport

Update non-exposure changing order fields.