betfair-horses is a Java layer around the Betfair APIs that I wrote to support an algorithmic betting project on which I was working. As my focus was on horse racing, the code is geared that way; however, many of the features and approaches found here can be used and extended to work for other betting markets.
- Auto-generation of all API request and response classes based on the Betfair WSDL.
- Wrappers for many key API methods.
- Specific methods designed for betting on horse racing events.
- Results retrieval from the Betfair RSS feed.
- Handling of expired sessions and API throttling using AOP.
- Parsing of compressed market price data.
Look at SampleApp
for a simple example of how to use betfair-horses.
- A Spring-based sample app, demonstrating many more of the features.
- Quartz scheduling of bets.