Bfexplorer BOT SDK and what betfair bots you can program in C# or Visual Basic
Posted in Bfexplorer Labs by StefanBelo Tags: BOT
Bfexplorer PRO supports three types of bots: MarketBot, RunnerBot and LookUpBot. If you want to develop simple bot scripts you can use MyMarketBot and MyRunnerBot. Both these bots support MyBotParameters facility for storing bot parameters and you can execute such bots by using Bot Executor setting for My market bot and My bot.
If you want to add your bot to Bot Executor, you must create a bot assembly implementing IBotExecutor interface. In the Bot SDK solution you can find BfexplorerCommunityBotExecutor project with source code for all bfexplorer community bots. In this project you can find an implementation of LookUpBot as well.
When debugging your betfair bots in Microsoft Visual Studio you can set Command line arguments:
YourBetfairUserName YourBetfairPassword True
So three parameters separated by space. The last parameter True, sets the practice/training mode, so after you start debugging bfexplorer automatically login to betfair and switch the training mode on.
If your bot requires interaction with the user interface of Bfexplorer PRO 2 then you can utilize IBfexplorerPluginContainer interface. Have a look on the bot: ShowSteamersDrifters where the bot selects a selection, in this case a steamer one, so the selection whose odds decreased most.
If you want to add a new feature for Bfexplorer PRO 2 and this feature requires some kind of user interface then you can create bfexplorer plugin/extension implementing IBfexplorerPlugin or IBfexplorerPlugin2 interface.
Bfexplorer PRO 2 already offers 14 extensions. My favorite ones are Close all positions, Betfair Coupons - Football, Ninjatrader betfair data feed and Market data visualiser. As a betfair bot developer you could find interesting Market bot executor, and of course you can build your own betting or trading solution. For instance on the screenshot bellow there is a horse racing trading solution I created 2 years ago for one bfexplorer user.
You can download Visual Studio project with the betfair source code in C#.

Wednesday, June 29, 2011
Thanks Stefan
Will take a good look at this project over next few days, this flexibility and power is exactly why I have signed up for BFE!, will post my comments by editing this comment as required :) (and thanks for adding in command line stuff so quickly)