- •Getting Started with API-NG
- •Application Keys
- •API-NG Login
- •Non-Interactive (bot) login
- •Certificate Generation With XCA
- •Interactive Login from a Desktop Application
- •Interactive Login - API Endpoint
- •Login FAQs
- •Keep Alive
- •Logout
- •API-NG - Visualiser
- •Example Requests
- •Market Data Request Limits
- •Understanding Market Navigation
- •API 6.0 > API-NG Operations Comparison Table
- •API-NG Reference Guide
- •Betting API
- •Betfair Starting Price Betting (BSP)
- •Betting on Australian Events
- •Betting On Italian Exchange
- •Navigation Data For Applications
- •Betting Operations
- •listCompetitions
- •listCountries
- •listCurrentOrders
- •listClearedOrders
- •listClearedOrders - Roll-up Fields Available
- •listEvents
- •listEventTypes
- •listMarketBook
- •listMarketCatalogue
- •listMarketProfitAndLoss
- •listMarketTypes
- •listTimeRanges
- •listVenues
- •placeOrders
- •Italian Exchange Specific Bet Rules
- •cancelOrders
- •replaceOrders
- •updateOrders
- •Betting Exceptions
- •Betting Enums
- •Betting Type Definitions
- •Accounts API
- •Accounts Operations
- •createDeveloperAppKeys
- •getAccountDetails
- •getAccountFunds
- •getDeveloperAppKeys
- •getAccountStatement
- •listCurrencyRates
- •transferFunds
- •Account Operations (Vendor API)
- •activateApplicationSubscription
- •cancelApplicationSubscription
- •getApplicationSubscriptionHistory
- •getApplicationSubscriptionToken
- •getVendorClientId
- •listAccountSubscriptionTokens
- •listApplicationSubscriptionTokens
- •updateApplicationSubscription
- •Accounts Exceptions
- •Accounts Enums
- •Accounts TypeDefinitions
- •Heartbeat API
- •Vendor Services in API-NG
- •Interface Definition Documents
- •Additional Information
- •Betfair Price Increments
- •Currency Parameters
- •Racecourse Abbreviations
- •Runner Metadata Description
- •Time Zones
- •Common Error Codes
- •Sample Code
- •Excel & VBA Sample
- •Java
- •Javascript
- •Python
Using the set of navigation operations, you can easily create a menu tree of markets in whatever hierarchy you want. You can can listEventTypes to get the Sports as the top of your menu. Or, you could call "listCountries" and use markets in a country as the root of the tree.
There is also listMarketCatalogue so if you didn't care about creating a visual navigation, you could simply calllistMa rketCatalogue with a MarketFilter defining the markets you're interested in and get back information about those markets.
API 6.0 > API-NG Operations Comparison Table
The below table compares API-NG operations with their API 6.0 equivalent for those looking to migrate their applications.
API6 Operation |
API-NG Operation |
Notes |
cancelBets |
cancelOrders |
|
cancelBetsByMarket |
cancelOrders |
All bets can be cancelled using cancelOrders if |
convertCurrency |
listCurrencyRates |
|
getAccountFunds |
getAccountFunds |
|
getAccountStatement |
getAccountStatement |
|
getActiveEventTypes |
listEventTypes |
|
getAllCurrenciesV2 |
convertCurrency |
For minimum bet size and BSP lay liability for |
getAllEventTypes |
listEventTypes |
|
getAllMarkets |
listMarketCatalogue/Na |
Use Navigation Data for Applications to recrea |
|
vigation Data for |
|
|
Applications |
|
getBet |
listCurrentOrders |
|
getBetHistory |
listClearedOrders |
|
getBetLite |
listCurrentOrders |
|
getBetMatchesLite |
listCurrentOrders |
|
getCompleteMarketPricesCompressed |
listMarketBook |
Requires EX_ALL_OFFERS set as the PricePr |
getCurrentBets |
listCurrentOrders |
|
getCurrentBetsLite |
listCurrentOrders |
|
getDetailAvailableMktDepth |
listMarketBook |
Requires both EX_ALL_OFFERS and EX_TR |
getEvents |
listEvents |
|
getInPlayMarkets |
listMarketCatalogue |
Requires 'turnInPlayEnabled = true' in the Mar |
getMarket |
listMarketCatalogue |
|
getMarketInfo |
listMarketCatalogue |
|
getMarketPrices |
listMarketBook |
Requires EX_BEST_OFFERS set as the Price |
getMarketPricesCompressed |
listMarketBook |
Requires EX_BEST_OFFERS set as the Price |
getMarketProfitAndLoss |
listMarketProfitAndLoss |
|
getMarketTradedVolume |
listMarketBook |
Requires EX_TRADED set as the PriceProjec |
getMarketTradedVolumeCompressed |
listMarketBook |
Requires EX_TRADED set as the PriceProjec |
getMUBets |
listCurrentOrders |
|
getMUBetsLite |
listCurrentOrders |
|
getSilks |
listMarketCatalogue |
Available when the MarketProjection RUNNE |
getSilksV2 |
listMarketCatalogue |
Available when the MarketProjection RUNNE |
Heartbeat |
heartbeat |
|
keepAlive |
Keep Alive |
|
login |
Login |
Interactive and non-interactive login methods a |
logout |
Logout |
|
placeBets |
placeOrders |
|
transferFunds |
transferFunds |
|
updateBets |
updateOrders/replaceOr |
|
|
ders |
|
viewProfile |
getAccountDetails |
|
viewProfileV2 |
getAccountDetails |
|
Deprecated API 6.0 Operations
The following operations are deprecated and won't be provided via API-NG:
addPaymentCard createAccount deletePaymentCard depositFromPaymentCard forgotPassword getCoupon getPaymentCard getPrivateMarkets modifyPassword modifyProfile retrieveLIMBMessage selfExclude setChatName submitLIMBMessage updatePaymentCard viewReferAndEarn