Community Articles
- Popular
- Recent
- Comments
-
Hello. Since yesterday I have a delayed API on my BF Explorer trading software. I had no bots running when this happened and now I am also unable to trade as all stakes in the markets keep flashing all over the ladders on random odds, being absolutely impossible to figure out what was the last price ...
9.5.2020 16:19:41 -
I tried BFexplorer, having used 3-4 different software applications beforehand. The 2 days utilising the software, I managed to get a feel for the product and like the modern display on the black background. Bets placed were very responsive with no lagging experienced from other products. A few ...
25.3.2015 17:55:00 -
Version 3.23.1126 Cumulative updates to the Bfexplorer Preview version (.net 9.0) Version 3.22.0821 Cumulative updates to the Bfexplorer Preview version Version 3.10.0721 Cumulative updates to the Bfexplorer Preview version (.net 8.0) Version 3.9.0425 Cumulative ...
26.11.2024 10:54:45
-
In the new year I will release the new version of bfexplorer. If you want to test the preview version, please download it from my dropbox: https://www.dropbox.com/s/ewmbdcgqf75ak3t/Bfexplorer.msi?dl=0 .net 9 SDK Download .NET 9.0 SDK (v9.0.100) - Windows x64 Installer The app requires WebView2 ...
26.11.2024 12:11:47 -
Version 3.23.1126 Cumulative updates to the Bfexplorer Preview version (.net 9.0) Version 3.22.0821 Cumulative updates to the Bfexplorer Preview version Version 3.10.0721 Cumulative updates to the Bfexplorer Preview version (.net 8.0) Version 3.9.0425 Cumulative ...
26.11.2024 10:54:45 -
Overfitting: The art of avoiding overfitting and the importance of comparing training and test results to detect it. ROI Calculation: Different methods of calculating ROI, including the impact of flat stakes versus stakes based on odds. Feature Selection: Emphasize the importance of ...
21.11.2024 8:41:42
- by : Betfair Bot
- by : adska
- by : adska
- by : adska
- by : adska
- by : Betfair Bot
Betfair Bot
On the main app toolbar you have got button: “Use Bet Event Trader”, when active bfexplorer presents its user interface with ladders in Bet Event Trader view (ladders) , when you switch it off “Bet Event” view with market grid is presented.
I would suggest you to choose you betting/trading interface and also change layout, so size and position of other views, you can switch off those views you will not use, and then add your app layout clicking on menu item View / My Workspaces / Add.
This way you can create different workspaces, for instance I do so creating two workspaces naming them: Bot, Trading. So the Bot workspace is market grid, and Trading workspace with ladders as the main user interface.
Once you create such workspace it is automatically loaded at each bfexplorer startup, more about app layouts here:
Application layout and workspaces
Betfair Bot
CashoutAll officially released by betfair:
https://apps.betfair.com/trading/cash-out-all/
Betfair Bot
I created short video showing how to use Bot Executor. It is actually quite simple:
1)
You have to create your bot settings in “Bots to Execute” adding your dutch bot. You can configure many different settings of your dutch bot, not just one like in my example, I named my bot setting: My Horse Racing Dutch Strategy.
When creating more setting for the same bot, it is a good idea to name it appropriately, so by name you can distinguish among different bot settings.
2)
You want to execute your bot on some markets, and markets are browsed in Event Browser. As you can see in my video I created my favorite events, in Navigation view. You should created you filter for horse racing at least, so whenever you open bfexplorer you will have Horse Racing in Navigation list, otherwise you will have to click on “Upcoming in-play events”, and then in Event Browser on Horse Racing, but this default settings shows all horse racing win markets from all countries.
In my video I show what you should set in “My Bet Event” dialog.
3)
So now you have got horse racing win markets from GB and IE in your “Event Browser”, and you want to execute your bot on all markets or on manually selected ones.
Select at least one market, so “Execute in Order / Bot Executor” icon is active, now you can click on that icon and “Open in Order / Bot Executor” dialog appears, here you select your bot you want to execute and set: “Start execution time”. This time is relative time span from official market start time, the race off time in your case. You want 3 minutes, so you set -00:03:00.
If you want to execute your bot only on selected market/s, then leave “Open only selected” checked, otherwise uncheck it, so your bot will be executed on all markets listed in “Event Browser”.
In my video I wanted executed my bot only on those 3 selected markets.
At the end of my video I showed what should be done first. You should run your bot for test purposes on couple markets, because you bot offers 12 different parameters you can set with different values, so this way you should ensure that settings works as requested.
Bfexplorer offers “Practice Mode” so when it is activated, no bets are placed on betfair, but bfexplorer and your bots act like real bets were placed on markets. I really suggest testing your strategy in “Practice Mode”, you can run it for couple days to find a profitable bot settings, and/or list of races on which your strategy generates profits.
Betfair Bot
1)
Bfexplorer offers automatic bot execution using tool Bot Executor. In Event Browser you open markets by creating your favorite events list, you can do so jut by one click, so for instance you set horse racing win markets from countries: GB and IE. Betfair returns maximal 1000 active markets, for horse racing betfair opens markets for 3 days, I think.
You will get automatic execution, but only for limited number of markets. I also develop bespoke built apps allowing to reload markets, so able to run in 24/7 mode, but such app starts from 500 GBP.
2)
Yes, you will be able to set how many favorites you want to dutch, by default I set it to 3.
3)
When back dutching, you can set the total stake to back, from this stake is calculated reached profit, so percentage from stake can be calculated as well, if minimal set profit percentage is not reached, the dutch bets will not be placed.
4)
You will set bot time execution, relatively to official race start time, for instance 1 minute, if profit percentage is not reached dutch bets will not be placed.
5)
Ok
6)
This information is for now not available in betfair api data, these days betfair prepares some updates:
http://docs.developer.betfair.com/docs/display/1smk3cen4v3lu3yomq5qye0ni/API+Roadmap
Race type will be added.
From another befair web api I can get, distance, eligibility, going, classification, race type, but not race class.
7)
Ok
8)
Ok
My price for such bot project is 180 GBP, time to deliver in 2-3 days.
Betfair Bot
Click on info email and send me your exact bot specification.
Betfair Bot
SPORTSBETTER posted on betfair forum following request: FOOTBALL CODING (DOUBLE BACKING)
http://forum.bdp.betfair.com/showthread.php?p=14815
I will not speculate about quality of his bot code, but will say what could go wrong when programming with betfair api, and what some software developers do not realize when implementing betfair bots.
Our applications/bots communicate with betfair using betfair API in request/response manner through the Internet, and so a lot could go wrong.
* Internet connection or latency problems
* Terminated connection
* Betfair api services problems
All that could happen anytime, and the worst-case scenario is when our api request was processed by betfair but response was not deliver back. When communication problems happen during a bet operation, and it is not handled correctly by bot code, the bot can place double bets.
Bfexplorer bots are implemented to correctly handle the above issues and more. What will happen, when part of bet is matched and offered odds moves? What will happen when bot placed a bet and market is suspended, so unmatched bets are cancelled?
Those are questions bot developer should deal with some way in his bot code, so it means that bet place operation is not just simple call of betfair api method: placeOrders.
For instance, when bot should place a bet under minimal stake amount, your bot must use betfair api methods: placeOrders, cancelOrders, replaceOrders.
All that means that your bot code is not just about betfair api methods wrappers, but more about operation flow, because your bot strategy could involve to place more bets on different market selections.
Bfexplorer bots offer such operation flow adding the base betting or trading features, so hedge bet calculation, dutch betting and so on. Bfexplorer bots implement those base features for you, you do not have to think more about betfair api, but about your strategy implementation, so you program your trading or betting model, and use bfexplorer bots to orchestrate bet operations.
The simplest way of implementing your own strategy is using the bot: Execute Trigger Bot, and you program your strategy logic in script code.
In my video you can see how such script looks like when implementing "your strategy". You can use it just replacing your code in the function: getMySelectionAndBetType
In F# you can even use your python code if you want to: FSharp.Interop.PythonProvider
Betfair Bot
You must select selections in NinjaTrader tool, so this way you declare which selection/s will be monitored when you click on Monitoring button. At the moment of clicking, in the Instrument column appears the selection name, so SEL1, ..., so in Ninja app you know which exact selection from betfair market is assigned to your chart.
So, man what you did? You clicked on Monitoring but having no selections selected, so no data were transferred to Ninja app. Actually, almost by chance, the first selection was almost selected when you resorted selections by clicking on a column, click on selection row, so the background of selection changes, you know that selection is selected right?
You are not 2 years old so you already learned, that when pressing on Ctrl keyboard, and then when clicking with the mouse on other rows/items in the list view/grid view, you add selections, are you familiar with that?
In the old version of that tool, you can see checkboxes, left from the selection name.
I noticed you have got 0 on betfair account, so the chance is you have got delayed data from betfair.
Another point, man I really do not know what you do, but watch your video yourself, can you see in bfexplorer Open Events, any open market?
No, we cannot see it, so I believe the NinjaTrader tool, was left there from previous tests, there must be a link between bfexplorer and the NinjaTrader tool.
Forgive me, but please take my advice, just try to think when you do anything computer related. Yes, on your video I can see you are quick user, me in my 52 years, I am not so quick, so maybe, therefore, I have got time to read what UI presents on the screen, and think before clicking :-)
Betfair Bot
Did you read at least one of articles, the search result for ninja returns?
If not read this, and my comment:
Extension Ninja Trader
There are 4 steps you must do, and all will work, as you can read cardurco user confirmed that as well.
He used the new version of bfexplorer as well, as this website presents only articles to the new bfexplorer app. With the new release of bfexplorer I deleted all old articles, but I left the old ninja video as it is relevant information to setup ninja app first.
Betfair Bot
Ok, I have fixed the search url, but web page offers Searching on web pages, so you could just type in Search in site: ninja, and you would get the same search result.
It does not matter that video is for the old bfexplorer app, it shows what you must do on Ninja app, to allow feeding of market data to ninja trader app through bfexplorer app.
You must be familiar with Ninja app, to use it with bfexplorer, it seems you are not.
Betfair Bot
http://bfexplorer.net/Articles/Search?text=ninja
Betfair Bot
Please follow steps shown in the video to articles you can find on the forum, I gave you link to the search result.
Betfair Bot
Football Bot, is trigger bot, you must set the parameter: BotName to your trading or betting bot. We can call such bot declared by BotName parameter: action bot.
So, the action bot is actually a bot that is going to place your bets, it could be bot settings of "Place Bet" or "Place Bet and Close Selection Bet Position (trading bot)" bot or whatever other bot allowing to place bets.
Any bot settings allow entering "Entry Criteria" (click on tab Entry Criteria in the bot settings dialog).
Here you can add, click on green plus icon, LastPriceTraded Is between x and y value.
As in your action bot setting you can declare on which selection bot will place bet/s, the parameters: Selection/ExecuteOnSelection and SortSelectionBy, your bot will know which selection LastPriceTraded to evaluate.
As your bot will use Entry Criteria, you can restrict how many times these entry criteria should be evaluated, just by setting the parameter: Market/EvaluateEntryCriteriaOnlyOnce.
So, what will happen when your Football bot triggers your action bot?
As the EvaluateEntryCriteriaOnlyOnce is set to True (checked), and Entry Criteria is set to evaluate LastPriceTraded Is between x and y value, then when LastPriceTraded Is not between x and y, your action bot will not place a bet, and ends its execution.
Betfair Bot
In the latest bfexplorer release I have changed placeholders for query parameters to:
{eventId}
{marketId}
{nMarketId}
{selectionId}
So, what useful urls could you add to your bfexplorer Web Browser tool?
Betfair Live Stream:
https://videoplayer.betfair.com/
Match View & Stats:
https://www.betfair.com/exchange/plus/pop-out-live-stream/{eventId}?feedType=dataVisualization
Selection Chart:
http://sportsiteexweb.betfair.com/betting/LoadRunnerInfoChartAction.do?marketId={nMarketId}&selectionId={selectionId}
Race Charts from my test web app:
http://185.58.225.212:8085/raceChartDataEmbedded/{marketId}/true/15.0
Betfair Bot
Sean, I would really suggest to read what Visual Studio reports when you try to build your bot project.
Similarly to betfair api project (BetfairApiConsoleFSharp) where you had to reference bfexplorer assemblies, in MyFsharpBot project there are another 3 libraries you must reference, libraries from devexpress.
Well, I do not think you bought that libraries so default path to those libraries must be replaced to bfexplorer app folder:
C:\Program Files (x86)\BeloSoft\Bfexplorer
Yes, I bought license to those libraries, as I used them for bfexplorer UI.
Just watch video I prepared, it also shows how to debug bot with Visual Studio and running bfexplorer app, just set:
1)
Debug / Start external program:
C:\Program Files (x86)\BeloSoft\Bfexplorer\Bfexplorer.BotUI.exe
2)
Command line arguments:
YourUserName Password True
True at the end will say bfexplorer to run in practice mode when debugging your bot.
3)
Build / Output path:
C:\Program Files (x86)\BeloSoft\Bfexplorer\
4)
Open VS as administrator, because VS will copy assembly/s to Program Files folder.
Now you are ready to debug your bot project, bot assembly/s will be copied to bfexplorer app folder, otherwise you would not be able to debug your code, your bot shares bfexplorer assemblies and bfexplorer loads your bot assembly.
Frankly to say I do not remember whether I had given you Bfexplorer BOT SDK source code. I am very busy last month's with 2 other projects, so the chance is you are using old bot sdk projects, therefor you have got problems with changed interfaces and so on.
I removed BOT SDK from public usage couple months ago when finding out that bunch of Indian developers uses Bfexplorer BOT SDK to quickly build betfair apps utilizing bfexplorer libraries.
They simply used JayBeeBot project from Bfexplorer BOT SDK solution, and built customers projects from freelancer and similar freelancer web sites, of course they were paid, but no me, they stole my intellectual property, not saying that betfair itself do not support, or do not offer betfair api for developers from some countries: India, Pakistan, Bangladesh, Sri Lanka or UAE.
Actually, the fact was reported to me by accident, as one of those Indians customers who paid for such project needed to change some features in his betfair app, so he contacted the Indian developer but never got reply. He was clever enough to look at to app folder finding out that his app uses assemblies which names starts with: BeloSoft.Bfexplorer
So he googled it and find my website and contacted me through my info email, asking why I did not respond to his emails. Well yes, that is the Internet where there are quite a lot of fraudulent people.
Be warned when you asked developers on freelancer to build you betfair app.
Betfair Bot
Read the errorr message:
Error FS0001 This expression was expected to have type
'BotDescriptor list'
but here has type
'BotDescriptor []'
so MyBots, and MyBotsCreators are list not arrays.
You are using old bot sdk against the new bfexplorer backend assemblies.
Betfair Bot
Try to reinstall the latest version of bfexplorer, it seems to be a problem with assembly obfuscation.
By the way, you know that bfexplorer assemblies are built on .net 4.7 and F# 4.4.1.
Betfair Bot
When you create a new project in Visual Studio, into your project are automatically included referenced libraries.
Even the simplest program like Console.WriteLine("Hello world!") would not be compiled without referenced System.dll library.
Your built app (project) must include all external libraries used by your app/by your code.
1)
For simple betfair api program using bfexplorer betfair api libraries, you must add 2 libraries, references:
BeloSoft.Data, BeloSoft.Betfair.API
2)
In your program code you must open namespaces of used libraries:
open BeloSoft.Betfair.API
open BeloSoft.Betfair.API.Models
In C# code we use: using keyword.
3)
Betfair api http servers expects http request with header Expect100Continue set to false.
To execute betfair api program you must set it either in code, or in App.config file.
4)
Now you can start writing your betfair api code. Visual Studio intelisense will help you with type/object or method declaration showing what properties are implemented, what parameters you must enter to methods and so on:
https://docs.microsoft.com/en-us/visualstudio/ide/using-intellisense
Familiarize yourself with .net programming first, it does not matter in what programming language.
Betfair Bot
Most of the videos you can see on this web site had been made to show bespoke bots or app features. It is simpler for me to make a short video and sent features description by email when finalizing bot project for my customer.
I do not sell bespoke bots or apps made for other people who paid for development.
I can build your bespoke bot or app, all what I need is your bot or app specification and then I can estimate price and time to deliver.
I do not need long specification, just plain text explaining base features, in bot development you describe parameters to avoid giving knowhow or crucial parameters.
The price really depends on time I will spend on development, for simple bots it starts from 80 – 100 GBP what is around 5 – 6 working hours for me.
You have got my email, just look at on the web page header.
Betfair Bot
You can rearrange ladder columns, just by dragging column header and dropping it to the new position or through Application / Settings / Trading Ladder. Reverse bet placing is not supported as it breaks all rules: to offer a bet and to take bet at desired odds and volume.
You can use NinjaTrader tool to visualize betfair data in charts, or any bot integration PRO allows to visualize data.
NinjaTrader Tool
Analyzing betfair data to trigger trading on horse racing markets.
Betfair Market Charts and Data Analyzing
You can change ladder colors and rules of how are data presented by clicking on any header by right mouse/context button on your mouse, then a context menu appears and you can click on Conditional Formatting / Manage Rules. Changed rules are not saved, so when restarting bfexplorer the default rules are applied again. Bfexplorer UI can be presented in light or dark theme (see Application / Settings / General). The column colors are blue and pink, but in light theme background colors seems darker, try dark theme to see difference.
Ladder Column - Conditional Formatting Rules
LPTV is last price traded volume, and it shows on ladder what amount was matched on best offered prices. When clicking wherever on LPTV column cell, the values are cleared, so then for best offered prices you can see how much volume of money was matched by backers, and layers.
Betfair Bot
And betfair reacts to such users as well, I have just received email from betfair saying:
"You'll receive delayed data when using a delayed App Key or when using a live App Key if your Betfair account has never been funded or if an override has been applied to your account, or App Key."