-
Introducing Bfexplorer Studio: Code
Overview
Bfexplorer Studio is an interactive environment designed to empower users—especially those with programming experience—to explore, test, and automate Betfair trading strategies and bfexplorer application features without the need to install a full IDE like Visual Studio or ...
17.4.2026 15:15:35
-
A kinf of Lay the Draw at (around) Halftime
Hi,
I’m a new member here. I've spent some days watching a number of videos, reading community and blog articles, and testing the software in Practice Mode, and I must say it’s really awesome.
There are still many details I don't know, but to date I've managed to set up a sort of Lay ...
27.3.2026 9:13:29
-
Bfexplorer Latest Release
Version 5.07.0322
The cumulative Betfair AI Trading, Create Strategy Settings LLM support. Install from Bfexplorer Preview version.
Version 4.11.0214
The cumulative Betfair AI Trading. Install from Bfexplorer Preview version.
Version 4.10.1227
The cumulative ...
23.3.2026 17:38:27
Betfair Bot
You need to download script to your computer, and ensure that it is in format you can see on github page:
https://gist.github.com/StefanBelo/e49bdc9fdd60c580a212b688190dd33c
It is code and bfexplorer compiles it executable assembly, so there must right code without code errors or wrong text formatting.
Have a look at here, on this post where you can see, what IDE you can use to write or update bot trigger script, and be sure that all is ok:
Betfair Bot Programming for Non-Developers
Betfair Bot
There are quite a lot of examples of using bot trigger script, for instance here in this post: Double or Bust - Betfair Trading Bot for Horse Racing
You can see (from 15 seconds of the video), how bot trigger is setup with bot: “Execute Trigger Bot”.
Download bot trigger script to you computer, and repeat bot setup seeing in this video.
Keep in mind that it wise to test any script in practice mode, as bot script really just place bets without any strategy, just hoping that bets will be matched making zero risk profit per selection, which is hedged at set time.
You need to test it on more races to estimate your Profit/Loss percentage, or just try to introduce parameters which could work for you better. It is more an introduction to bot trigger programming than presentation of 100% profitable strategy.
LAPUENTE1
I CHARGE THE TRIGGER TRIGGER TRIGGER BOT, AS YOU SHOW ON THE VIDEO, BUT THIS MESSAGE APPEARS TO ME WHEN I GIVE YOU A BEGIN:
FAILED TO CREATE THE BOT TRIGGER
ERRORS: ASSEMBLY REFERENCE MSCORLIB.DLL WAS NOT FOUND OR IS INVALID.
PLEASE CAN YOU SAY HOW I RESOLVE?
I AM LOOKING FORWARD TO YOUR RESPONSE
Mir.
Thanks for hint.
Meanwhile, I'm trying to monitor whether it will be important to compare the dependency of rank change, frequency of rank change, odds at the time of change of rank, direction of trend... etc.
I think it will not have decisive weight, but it will help to place bets on the market (dutching on the speculative odds of selected runners)
Betfair Bot
Betfair historic data are in json format, so you must know how to process them. I do not know what betfair has been thinking when releasing data in that format as most people are not programmers.
What does it mean for you?
As many others like you who may bought that data, after opening them have no fuck idea what they just bought from betfair, so such people end on freelancer web sites hiring someone to export from those data what they want.
So my hint for you google for instance:
"betfair data json" site:www.freelancer.com
And from that web site, when data are still available you can download some PRO data for free, of course you must be registered on web site to download data.
Mir.
Is there anybody who has data from UK Horse Racing? Historical data from BF - Advanced plan.
Sample, 1-2 months. Only In-play data.
I want to try analyze betting on 1,2,3,4,... runners with depending on the rank and their change of the rank. Thx.
Betfair Bot
Keep in mind that to your valid betfair api activation there are three services, so three different types of problems could occur. You can check your subscription status by login on bfexplorer web site and clicking on menu item User / My Subscription Details.
My authorization service registers your details only, activation of betfair api access to your betfair account is done on betfairs servers, and in some cases this procedure could take more time, that is the way how betfair does this procedure.
When first attempt to activate your betfair api access fails, white for a while and repeat login procedure again. In this process there could be two problems: your new subscription code is not generated from betfair servers, or your generated subscription code is not activated on betfair servers.
Yes, from the nature of betfair api activation there could be a short time when your betfair api activation is not activated, mainly when you use bfexplorer in fully automatic mode, as the activation process requires re-login procedure, so closing bfexplorer and login again. If you use bfexplorer this way them better solution for you is to buy 1 year subscription, but again when subscription expires you need to re-login, that is actually betfair requirements to activate betfair api.
For common users there are no such problems as he/she runs bfexplorer on daily bases, so reactivation of api access is no problem, as times of login differs.
zorrakovich
Subscription renewed overnight, no need to worry.
One question I have is that going forward, will there be a blackout period between each month or no?
Thanks
Betfair Bot
In-play horse racing markets are very volatile. I made short video showing situation on such in-play horse racing win market, you can see that in many cases back book value goes from 101 up to 135% what means there is big gap between best offered back/lay prices.
On in-play markets there is applied bet placement delay (1 second for horse racing markets), therefore placed bet calculated at current best offer price can be unmatched, when it appears on the market after bet placement delay expires. Close selection bet position offers the parameter: BetMatchingTimeout, so when you bet is not fully matched bot waits for set bet matching timeout, so for chance the unmatched bet be matched, and when bet is not fully matched it is cancelled and bot tries again to close your bet position at set parameters.
Keep in mind that betfair applies so called best execution rule when bet is placed, it means when there is better bet price then price you asked for in your offer, your bet is matched at this better price. This rule can introduced some problems when closing your bet position, or when hedging, as the hedging bet stake is calculated to exact priced.
When this best execution rule is applied your bet position is not equally hedged, therefore is such in-play scenarios is a good idea to use “Close Market Bet Position”, this bot closes bet position on all selections where is possible to close bet position, and checks if position evenly closed, if not bot tries again to close bet position trying to level profit/loss on all applicable selections.
This bot (“Close Market Bet Position”) offers the parameter: ClosePositionAtTime, when set to unrealist value, for instance to -1.00:00:00 (minus one day), bot immediately closes bet position on market, not checking whether Profit/Loss were reached.
In your trading scenario is better to use trading bot: “Place Bet and Close Selection Bet Position” setting the parameter: CloseBetPosition/ClosePositionImmediately what means that after your opening bet is fully matched bet to close your trading position in Profit is calculated and immediately placed on market offering it.
If you want to execute your strategy with two bots: “Place Bet” and “Close Selection Bet Position” then first evaluate all offered parameters to get the best execution of your bot, switch off parameter: CheckingLastPriceTraded, try different values for BetMatchingTimeout, OfferMyBet.
You can program your own Close Bet Position bot of course, for instance checking gap between bets offered back/lay prices, you can place your bet in the middle of the offered prices, or just calculating latest price trend you can place your bet at most probable matched price.
The last possibility is to change your trading strategy to place dutch bets on potential winners.
Betfair Bot
I would suggest to rephrase “… uncontrolled bet placement …”, as bot place bet/s the way you instruct to place them.
So you want to say that you do not understand how bets are placed by your bots?
Corneliu
Ok, I'll have to test it out. Nevertheless, it shall be an important upgrade that with some adjustements may help prevent uncontrolled bet placement. Thanks alot Stefan
Betfair Bot
I have just added "Limit Action Bot Execution" bot to bfexplorer, install the latest version of bfexplorer and setup this bot to execute your action bot.
Keep in mind that bot limits number of executed action bots not number of bets, as depending on your action bot settings, such action bot can place more than one bet, mainly when bot is allowed to place bet in odds range, or when you use bots like: "Be The First In Queue".
In such cases you should revise market refresh rate setting, ChaseOddsTimeout, BetMatchingTimeout and similar bot parameters of bfexplorer bots.
Corneliu
Yes, that would be most usefull to prevent and control BF charges. Sometimes it seems a lot of bets are placed and there's no charges. Other times so few bets seem to be placed and the next day they debit hundreds of euros without even stating how many bets were placed and at what time. Thank you so much for being always available to help and improve your software.
Betfair Bot
If you place your bets by bots, then yes I can create a bot that executes action bots (bots placing bets) and records number of such action bots execution per hour, so limiting further bet placement if set limit per hour is reached.
Corneliu
Thanks Stefan, these new features are trully awsome ! Is it possible to have a security feature to limit number of bets to less than 1000 per hour so when that maximum number of bets per hour is reached, it doesn't allow any more bet placement until number of bets per hour decreases ? Thank you once again for all your priceless help !
Betfair Bot
IntelliSense in action:
Betfair Bot
Mike, this is not a joke, but I wanted to start with something you, and I believe everyone working with computer knows.
So in text editor app, the spellchecker checks your grammar underlying misspelled or wrong words by red line. If there are more options to correct wrong word a list of options is presented.
It is the same when you write code in IDE, any wrong construction of your code is underlined by red line, and error icon with possible solutions is presented. In IDE it is called Intelisense, and option to present properties or methods available for object types your code interacts with.
In trigger code, you can interact only with objects offered by bfexplorer app when trigger is instantiated, so that is your world of objects the intelisense offers properties and methods to you, so there is no need to make a list of offered objects your trigger can interact with, you already have this option in your IDE (Visual Studio, Visual Code, Atom, or whatever you use).
That is answer to your last question! Do we understand each other?
Watch video in my article: Betfair Bot Programming for Non-Developers
Where you can see what I am talking about, intelisense support, method description, for instance when hovering over code, or functions descriptions, like for Execute method there is description: unit -> TriggerResult, so you know that function takes no arguments (unit) and returns TriggerResult
What is TriggerResult and what options it offers is again offered to you by intelisense, when typing TriggerResult following . intelisense offers you list of all options you can use.
So basically any written code is checked against any error, and options are offered like spellchecker offers you correcting your bad spelling.
Keep in mind that using bfexplorer you agreed with T&C and I suggest to read it again if you did not do so.
Mir.
Traders likes volatility and unexpected big moves in markets.
There is enough opportunities to analyze... not only favorites and early first runners wins. Thumbs up for this example and idea!
kinghobo
Yes I do know what a spellchecker is, I'm starting to wonder if you know what customer service is , I'm paying £30 a month for this product on which you offer support but seem only to find the time to write sarcastic messages
Mir.
I see!
-----------------
I will point to the right, I have no problem with it or with Bfexplorer.
I have used another piece of software on another account. This account restricted because I still monitored markets and there was not any betting history (no matched bets, no charges,...)
Please, follow the rules of the Betfair, use common sense if it possible.
Enjoy.