Betfair API - A php library

chris (2009-12-02 14:04:55)
1580 views
1 replies
A couple weeks ago I sat down and put some proper time into the formation of the Bflib open source php Betfair library

The code is GPL'd and publically available. There is also a Betfair bot tutorial which I recently put up to help a new started get a first php-based bot up and running.

The idea came back when I was fiddling with backingline, I spent some time looking at Betfair to see if it would be feasible to take data from Betfair's exchanges and automatically resolve a staking plan through backingline's dutching engine. In order for that to work, an application would have to be developed which could talk to Betfair's exchanges, pull current market data, prices and depths on offer, run them through the backingline webservices and represent them to the user. At that point I realised that there is a distinct lack of good PHP API code for betfair, so I decided to write some.
Digg it! Submit to Slashdot Add to Blinklist Del.icio.us Add to Newsvine Add to Technorati Add it to Google Bookmarks Add to Magnolia
comment
chris
2010-01-04 12:07:39

Further updates

I made some further updates to the betfair 'bflib' code the other day - Specifically, I have ensured logical separation between the demo application and the core bflib library itself. I am sticking by the philosophy of making the bflib library totally application agnostic. That means I had to remove all the url parsing out of the betfairController class into an application controller for the demo, hence keeping the betfair controller simplified and less involved with the user, but more involved with invoking methods within the Model and gathering prepared data before handing over to the view.

Betfair responded very well by providing me with a vendorId and 6months unrestricted access to their exchanges. That will keep things moving as I start thinking about possible uses for the library. Meanwhile, I'll continue to build in support for the various Soap methods available..

reply icon