User Comments

  • Stefan
    1.9.2016 16:52:06

    Unfortunately I did not have a time to add this bot to Community ones.  

    I will do so in the update after betfair will cease Australian exchange service endpoint, so some changes will be required to bfexplorer as well.

  • Stefan
    1.9.2016 16:48:17

    What you executed by using Bfexplorer Console is just script, showing recorded data in XPlot charts. You need to execute the bot called: "Record Market Selection Data" to record those data first.

  • Stefan
    12.8.2016 16:32:22

    For more information read this article: Betfair Data to Database


  • Stefan
    7.8.2016 15:41:26

    Visual Studio offers the NuGet package manager: 

    You can use it to quickly install all needed packages (assemblies/libraries) to your project, just type XPlot.Plotly 

    On GitHub you can find source code for this project: 

    So alternatively you can clone or download XPlot, and build XPlot.Plotly.dll assembly yourself. 

    Do not forgot that you have to replace path to bfexplorer assemblies this script is using as well. 

    Well, I am not quite sure if you manage to do it yourself, as you ask for help in very base and common tasks any programmer/software developer must already know. I would really suggest to learn that first.

    Yes, Microsoft Edge is my default Internet Browser, therefor the script opens Edge to show charts. 

  • Stefan
    7.8.2016 12:23:25

    Actually all you need is just to read the code. To any console application you can enter command line arguments, and in the code of the console application those arguments are passed as array of strings.


    static void Main(string[] args)
        if (args.Length != 2)
            throw new Exception("Please enter your betfair user name and password!");
        var username = args[0];
        var password = args[1];
        var task = ExecuteMyTest(username, password);


    In the code you can see that the first argument (args[0]) represents your username and the second  argument (args[1]) your password. 

    Go to the Solution Explorer and on the BetfairApiConsole project click with your right mouse button, select Properties menu item, and click on it. 

    In the project properties window select Dubug, and in the Start Options sections, in the Command line arguments, enter your username and password. (the argument separator character is space). 

    Execute your bot sdk project, and your betfair credentials will be used to login to betfair thriugh betfair api. You can debug your test bot project or create your own ones. 

    In bfexplorer bot sdk you can find projects in C# or F# programming languages. 

  • Stefan
    11.7.2016 8:05:15

    I have just changed your subscription to Free Professional, you can execute bots now.

  • Stefan
    10.7.2016 13:03:26

    Thanks Neil, community subscription is automatically prolonged to free subscription after your previous subscription expires (and you are allowed to use the community subscription), then after your donation I must changed your subscription status to Free Professional, please let me know when that happens.

    Well, how to use bots?

    Just try to browse all available bots, and you will find out that bot names suggest the bot functionality, and bot parameters in details describe this functionality.

    For instance from your strategy, the cash out function. Bfexplorer offers this function/feature in bots having Close Position in their name (just type: close to Add a new order/bot dialog search input box to list all such bots).

    I suggested using “Close Selection Bet Position At Odds” bot, as this bot operates on one selection, but you can use as well the bot: “Close Market Bet Position” that closes bet position on entire market, it cashes out all open selection bet positions. The Profit parameter is mandatory one, so if you want to force the bot to cash out at any profit/loss, you must set Profit to 0 and Loss to 0.001, what covers any profit or loss trigger condition.

  • Stefan
    9.7.2016 11:57:07

    If you want to trigger your action bots by football/soccer match score or time then you must use “Football Bot”.

    Please install the latest version of bfexplorer:

    In the old version the Score parameter was mandatory, and you want to trigger by match time only as well.

    First you need to setup your two action bots, to place lay bet on “Over 2.5 Goals” and cash out.


    Use “Place Bet” bot and set following parameters: AllowPlacingBetInPlay to True (checked) , OfferMyBet to False, BetType to Lay, Stake, ExecuteOnSelection to 2, and name this bot setting: Lay Over 2.5 Goals


    Use “Close Selection Bet Position At Odds” bot and set following parameters: Odds to 0, ExecuteOnSelection to 2, and name this bot setting: Cash Out Over 2.5 Goals


    Use “Football Bot” and set following parameters: BotName to: Lay Over 2.5 Goals (use bot dialog to select your action bot, as typing the bot name you can make a mistake), Score to: 0 – 0, MatchTime to: 27, and name this bot setting: Lay Over 2.5 Goals at 27th minute and 0 – 0


    Use “Football Bot” and set following parameters: BotName to: Cash Out Over 2.5 Goals, MatchTime to: 46, and name this bot setting: Cash Out Over 2.5 Goals at 46th minute


    And finally to execute your strategy by one bot, use “Execute Bots” to add execute your two football bots, set the parameter BotNames to: Lay Over 2.5 Goals at 27th minute and 0 – 0; Cash Out Over 2.5 Goals at 46th minute (again use Select Bots dialog instead of typing bot names), and name this bot setting: My Football Lay Over 2.5 Goals Strategy (or of course name your bot settings as you like).

    You execute “My Football Lay Over 2.5 Goals Strategy” on selected markets manually or you can use Bot Executor tool.

  • Stefan
    4.7.2016 12:13:29

    Use My Bet Position tool to close your bet position, or just see total profit/loss per market. Open Markets view also presents total numbers per market like: Total Matched, Unmatched Bets, Matched Bets, Profit Balance and so.

  • Stefan
    29.6.2016 12:43:45

    Unfortunately all information I have got about a race is already displayed in Event Browser. Maybe there is possible to distinguish between race types from a market name, and then you would be able to filter events in Event Browser view.

    For GB and IE horse racing events, betfair offers timeform data, and I had done such projects which uses those data.

  • Stefan
    21.6.2016 13:38:17

    Betfair exposes their data through betfair api. In order to receive data from betfair server, the client (bfexplorer app) must sent a request to the server (betfair api server), the server replies with response data. This communication takes some time, and most of it depends on the Internet connection latency.

    In my case I am from Slovakia so from my location the internet connection latency to betfair servers is about 70 ms. Users located in London have about 15 ms, basically as close your computer is to betfair ones in the Internet infrastructure, the better your Internet connection latency is.

    So if I set update period to 50 ms, it actually does not mean that data from befair servers are delivered to bfexplorer every 50 ms, but instead it says that bfexplorer requests new data after 50 ms period.

    To get real time period of market prices update time, you must add your Internet connection latency and of course a time needed to process those data by bfexplorer, and that depends on your computer power, this time is actually unimportant when comparing to the Internet connection latency time.

    When using market/order streaming technology, a communication channel is open to betfair server, and bfexplorer only reads responses, so the intenet connection latency is applied only in one part of communication, and not twice like it is in REST client/server communication.

    Betfair applies limitations to client/server communication asking developers not to update one market data quicker than 200 ms, such limitation is not applied to market/order streaming technology so you can set update period to 0.

  • Stefan
    14.6.2016 10:25:49

    First you need to define how you will bet on games. Have a look at on “Tennis Bot”:


  • Stefan
    6.6.2016 15:07:26

    From BDP, please see the answer to your other question below:

    "The betfair market streaming service allows setting MarketFilter eventTypeIds, and many other filter criteria, what means that your app could be notified whenever betfair adds a new market to monitored eventTypeIds. The question is how frequently such filter setting queries data on betfair side?"

    Notification of new markets fitting the subscription criteria will be pushed out by Betfair within ~50milliseconds of them being published into our database.

  • Stefan
    6.6.2016 9:31:19

    When you place bets on a market you open your bet position on this market. On betfair you can close your bet position (cash out) by placing opposite bets to your opening ones.

    This procedure is also called: hedging, green out, close your bet position, and so on.

    In Bet Event (or Bet Event Trader) view you have got green or red button/s showing your current profit or loss on a market (on the market selection/s) when you place bets on the market (on the market selection/s) and these bets are matched. If you click on the button, then your market bet position is closed with profit or loss which the button was showing at the moment you clicked on it.

    You can find this feature on all green/red buttons, also in the Market menu (Market/Bet Wizards) when clicking on “Close Bet Position” or “Close Selection Bet Position”, and in the “Bots to Execute” when adding a bot by clicking Add a new bot button, you can find following bots:

    Close Selection Bet Position

    Close Selection Bet Position At Odds

    Place Bet And Close Selection Bet Position

    Trailing Stop Loss

    Close Market Bet Position

    Trailing Stop Loss On Market

    Those are all bots which are able to place your hedge bet to close your bet position automatically, and it is really only up to you which one you will use depending on a strategy you will execute.

    In your case, as you place more bets on more market selections, you need to use “Close Market Bet Position”.

    This article shows how you can add a new bot and execute it on market selection: My betfair bots.

    The procedure is the same, for any type of bot. You select the bot you want to use (in your case “Close Market Bet Position”), set its parameters and name your bot settings, clicking on Save button will your bot settings, and your bot appears in the list of Bots to Execute.

    Read the following article and watch the article video, showing automatic execution of similar strategy, you want to execute: Horse Racing - Dutch favourites and close bet position by hedging.

    On bfexplorer forum you can find more articles showing how to use “Close Market Bet Position” bot.


  • Stefan
    4.6.2016 11:58:59

    You installed software and I believe you read products web pages because you tried Bfexplorer BOT SDK as well.

    On bfexplorer product web page there is list of main features:

    So if you have got problems to understand a feature, you can watch short video showing you how to use such bfexplorer feature, tool or bot.

    In your betting/trading solution, there are included the following features:

    Bet operations

    My betfair bots

    Bot executor

    Therefore I do not understand why you posted a comment to the article/feature having no influence on what you want to do.

    Yes, in BOT SDK you can find bot scripts for dutching as well. You can manually place dutch bets using Bet Wizards (click on Market menu) and close market bet position using “Close Market Bet Position” bot at set profit or loss target.

  • Stefan
    2.6.2016 13:06:12

    You will need to use following bots:

    Place Bet

    Execute On Selections

    Execute On Associated Market

    If Then Else

    I do not know what kind of bets you want to place on 1 – 0, 2 – 0, 3 – 0 selections of the correct score market, it makes sense to be dutching bets, like you can find in Bet Wizards tools (click on the menu Market / Bet Wizards / Back Dutching)

    Unfortunately “Dutching Bot” is not yet available, so you can only use StakeType parameter of “Place Bet” bot to declare what Stake amount will be placed.

    To place bets on 1 – 0, 2 – 0, 3 – 0 selections you create bot settings using “Execute On Selections” bot. The 1 – 0 selection have index 5, 2 – 0 have index 9, and 3 – 0 have index 13, so in the parameter OnSelections you type: 5,9,13 and ask to execute your Place Bet bot.

    The next step is to use “Execute On Associated Market” bot, here you set BotName you want to execute, so it is bot name you created using “Execute On Selections” bot. The parameter Market name is: CORRECT_SCORE.

    You want to execute your strategy only on football matches where the home team is traded <= 1.5. All selection bots, so bots which offer the parameter ExecuteOnSelection, also offer selection criteria you can add in Entry Criteria tab panel.

    Unfortunately “Execute On Associated Market” bot is not selection bot, it is market bot having no information about the market selection on which it is executed, therefore you need to use “If Then Else” and set the parameter IfThenCriteria to: [LastPriceTraded] <= 1.5, and IfThenBotName to the assigned bot name of “Execute On Associated Market”.

  • Stefan
    1.6.2016 15:06:45

    Betfair introduced a new fee for software developers wanted to use betfair api, and I posted some comments there:


    Geoff, did you have email address to Senior Director, because I contacted Neil couple days ago and I did not receive any email yet. I am on betfair from 2007, and paid betfair on betfair api fees (for old api) more than 22500 GBP. Well, they say I must pay for their support; I am betfair software vendor offering my trading app for betfair, I paid 300 GBP fee per month, and stopped paying this fee just couple months before official release of new api ng. What I had got as promised support for my product? Well, quite opposite, they removed my bfexplorer bot sdk from offered products, and they did so again for new api ng, removing my posts here and not even mentioning my bot sdk in the list of api ng source code libraries.

    And got reply from Neil:

    We had several conversations by e-mail between us yesterday, but if there's a separate issue outstanding please let me know. BDP Support isn't available during weekends (or on bank holidays) as I mentioned yesterday when I responded to you.

    The previous API fees for Software Vendors and Personal (Full Access) customer's were £200 per month or £2000 per year.


    Here, is my answer:

    My fault it was amount in Euro I paid, the 300 amount number is just number I rember to pay back in 2007, so it was roughly 300 Euro per month, from that amount I calculated subscription fee for my product, hoping to get at least 10 paying users to get fees back I had to pay to betfair.

    Yes, now we communicate about market streaming problems, but the fact is that I still did not receive contact to your supervisor.

    Neil, show me what you did to support my product on app directory or on forum.

    I can refer to post here when I complained about your behavior when you did not want to add my product to new releases section on betfair app directory.

    Couple weeks ago you deleted my posts here about bot sdk, at that time we exchanged emails as well, and I reminded you this old story, well you finally agreed that you were wrong that as a matter of fact bfexplorer for api ng is a new product, asking me to send you information you will update to app directory.


    In protest I did not send anything saying that from app directory I have got 2-3 referrals per months, checking google analytics for May, I have got 0 referrals from betfair app directory.

    On the other hand, for god sake Neil, you are paid to do support for software vendors, so when you agreed you did wrong back in 2014 not flagging bfexplorer as a new release you could do so now at least. You could take a new picture from my web site as anyone comparing what you have got on app directory and what is from 2014 presented on my web pages, does not correspond to reality.

    Well, I wanted to ask your supervisor that and many other questions, but you did not send me contact to your supervisor.

    I am just making copy of this conversation to my blog, as I believe you will delete again my posts.

    Algotrader, yes I agree with you, T&C of this forum does not allow advertising, but many do so, just an example: James Butter advertising here his book: Programming for betfair, his articles or comments were not deleted but mine were deleted.

    I believe you agree that there is no difference between me and James Butler, he sells his book, and says thousands of befairians bought his book and made his own betfair bots. I try to sell my trading software and offer bot sdk for free, when bot sdk is used under the terms for free use of bfexplorer bot sdk.

    My posts here are deleted, and James Butler’s are not. Betfair advertise his book, but not my bfexplorer bot sdk.

    Actually my posts here about bfexplorer bot sdk, express my opinion on befair behavior I have got as betfair software vendor. Back in 2010 I think, I posted request to bdp to release to their betfair app directory my bfexplorer bot sdk as official product, they refused to do so. They have got my request but up till now they did not do anything with that. For new api ng I released new bot sdk again, and where is such information mentioned about it in app directory, in listing of betfair libraries?

    It is June 2016 now, 6 years back they did nothing.

  • Stefan
    22.5.2016 18:49:44

    Bfexplorer offers three types of subscription plan.

    Monthly subscription plan activates your betfair api access each months at day you created your paypal subscription to bfexplorer. No email is sent from bfexplorer when subscription is activated as the betfair api activation process is executed when paypal payment is received, and about this fact you already receives notification email from paypal.

    One year subscription plan is not recurring plan like monthly subscription plan, but betfair api activation is executed when paypal payment is received.

    Community subscription plan requires you to be an active user on bfexplorer forum. What does it mean to be active community user?

    If you go from trail subscription to free use of bfexplorer, then you must post at least one comment or artcle to bfexplorer forum.

    When you continue to use your free bfexplorer access to betfair api for following month/s then you must post an article or comment each week.

    When you use community subscription plan and want to use either basic or professional bfexplorer features, then you must be active community user like free users, and you must donate through paypal.

    The process of betfair api activation in this case is made through checking your activity status on bfexplorer forum when you login to betfair using bfexplorer app. If you are active user then your betfair api access is automatically activated with free subscription plan, after donating you must send me an email informing me that you made your donation, then I manually change your subscription status, so you will be able to use basic or professional features of bfexplorer.