Write Your Own Betfair Software

In addition to its website, Betfair permits access to its servers via an API. BetDAQ also has an API but is limited to people who are very active.

Access to Betfair's API is free of charge but there are limits to the amount of data you can download in any minute. For example, you can only download prices for any particular event once a second.

Still, free access to the Betfair API is enough to build an effective piece of software and you can then decide if it is worth spending £200 per month for full access.

On Betfair's developer forum there is a lot of help to those starting out on coding their own software. One particular thread, started by user Mumbles0, has helped many Betfair users to write their own software.

For those wishing to do likewise, I have a created a list of tutorials and useful posts from the Mumbles0 thread. The code is in Visual Basic but it can be modified to C# with some ingenuity.

I would also recommend that you read the entire thread for any snippets that might assist in extending your software. You will may find help if you are stuck with a problem others have also had.

Yes, I am available for hire but I will not code anything that I feel will take the edge off my trading.

Step 1. Build a Test Form #2
Step 2. Connecting to the Global service #3
Step 3. Saving the Session Token #4
Step 4. Typical API call: getActiveEventTypes #5
Step 5. Accessing an Exchange API #6
Step 6. Unpacking Response Strings #7
Step 7. Restrictions of the Free API #8
Step 8. Using a Call Timer #9
Step 9. Making Async API Calls #10
Step 10. Calling getCompleteMarketPricesCompressed #12
Step 11. A Look at Multithreading #13
Step 12. Getting a List of Runners #23
Step 13. Enabling gzip Compression #28
Step 14. Calling getMarketPricesCompressed #60
Step 15. Using TreeView to show events and markets #67
Step 16. Unpacking Removed Runners #87
Step 17. Sorting Runner Info Arrays #103
Step 18. Horse Racing - Today’s Card #174
Step 19. Placing a Bet #181
Step 20. Monitoring Bet Status #200
Step 21. Cancelling a Bet #204
ListBox for marketIds #214
Step 22. Changing the bet size and price #232
Step 23. Changing a Bet #240
Step 24. Calling getMarketTradedVolumeCompressed #258
Step 25. Accessing Australian Markets #272
Processing data from 2 async calls #302
Handling async calls for multiple markets #326
Step 26. Array fundamentals #334
Step 27. Understanding Object References #335
Step 28. Placing Multiple Bets with placeBets #340
Event time sorting #385
Step 29. Adding controls to a form at run time #397
Step 30. Saving your project’s settings #421
Step 31. Using the TabControl for multi-markets #471
Step 32. Displaying Prices in the Runner Grid #475
Step 33. Selecting a runner #479
Step 34. Using Excel with VB2010 #748
Step 35. Using Excel with VB2010 (continued) #749
Step 36. Handling Excel events #751

No comments:

Post a Comment