Skip to end of metadata
Go to start of metadata

 

As well as sample code developed by Betfair, this page allows you to find sample code or documentation prepared by members of the Developer Program community

All Betfair developed sample code follows a typical work flow:

  • Find the next UK Horse Racing Win market
  • Get prices for the market
  • Place a bet on the market 
  • Handle the error returned by the API when the bet fails as it is below the minimum stake size.

Please Note: In order to aide ease of understanding, the basic Betfair samples are not intended to show certain best practices for speed and throughput. Well designed applications should follow the best practices for client design of the application/language platform and should optimise on an HTTP request level with features such as requesting gzip'd responses and http connection keep alives. Please see Optimizing API Application Performance for further details.

The following samples are currently available:

LanguageDocumentationAvailable FromDescriptionDeveloped By
JavaDescriptionhttps://github.com/betfair/API-NG-sample-code/tree/master/javaSample Code for JavaBetfair
JavascriptDescriptionhttps://github.com/betfair/API-NG-sample-code/tree/master/javascriptSample Code for Node.jsBetfair 
PythonDescriptionhttps://github.com/betfair/API-NG-sample-code/tree/master/pythonSample Code for PythonBetfair 
PHPDescriptionhttps://github.com/betfair/API-NG-sample-code/tree/master/phpSample Code for PHPBetfair 
Excel/VBADescriptionhttps://github.com/betfair/API-NG-sample-code/tree/master/vbaSample Code for Excel/VBABetfair 
C#Descriptionhttps://github.com/betfair/API-NG-sample-code/tree/master/cSharp Sample Code for C#Betfair 
CurlDescription https://github.com/betfair/API-NG-sample-code/tree/master/curl Sample Curl RequestsBetfair
Perl https://github.com/betfair/API-NG-sample-code/tree/master/perlSample Code for PerlBetfair
Delphi https://github.com/jamiei/Betfair-API-NG-SampleSample Code for DelphiCommunity member - jamiei
Clojure https://github.com/jamiei/betfair-aping-sampleSample Code for ClojureCommunity member - jamiei

Please see further Client Libraries & Sample Applications 

 

 

 

  • No labels