User Comments

  • Stefan
    14.10.2017 17:33:21

    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 

  • Stefan
    3.10.2017 16:54:43

    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 :-)

     

  • Stefan
    3.10.2017 15:08:12

    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.

  • Stefan
    3.10.2017 13:18:40

    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.

  • Stefan
    3.10.2017 11:41:47

    Please follow steps shown in the video to articles you can find on the forum, I gave you link to the search result.

  • Stefan
    30.9.2017 14:41:56

    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.

  • Stefan
    30.9.2017 14:13:30

    Full version of bfexplorer:

    http://bfexplorer.net/Content/Downloads/Bfexplorer.exe

  • Stefan
    30.9.2017 14:11:41

    Free version of bfexplorer:

    http://bfexplorer.net/Content/Downloads/FreeBfexplorer.exe

  • Stefan
    29.9.2017 20:50:00

    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

  • Stefan
    22.9.2017 16:49:18

    You did not report back whether what I suggested helped you to solve this issue, but from my authorization service records I can see you have successfully logged in now.  

    Bfexplorer saves some settings to AppData folder, one of them is the application layout when added through Workspaces menu. 

    The folder can be found here: 

    C:\Users\YOUR WINDOWS USER NAME HERE\AppData\Roaming\BeloSoft\Bfexplorer 

    Delete this folder when having problems with bfexplorer app start up.

  • Stefan
    4.9.2017 10:05:26

    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.

  • Stefan
    2.9.2017 11:36:38

    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.

     

  • Stefan
    30.8.2017 11:42:18

    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. 

  • Stefan
    29.8.2017 15:19:24

    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.

  • Stefan
    11.8.2017 17:14:37

    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.

  • Stefan
    12.7.2017 14:26:12

    Free version of bfexplorer:

    http://bfexplorer.net/Content/Downloads/FreeBfexplorer.exe

  • Stefan
    8.7.2017 12:30:57

    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.

  • Stefan
    28.6.2017 18:27:28

    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."

  • Stefan
    28.6.2017 17:48:05

    I do not offer trial anymore as it was misused by bunch of Indies just to get free access to betfair api. I will may change my mind and reintroduce trial in near future.