Blog Article

Betfair BOT SDK - JayBeeBot by Bfexplorer

This project shows how to use BfexplorerService in very simply desktop application programmed in C# and Windows Forms as user interface library.

https://github.com/StefanBelo/BetfairBotSDK/tree/master/JayBeeBot

There are presented three main features every betfair developer must manage:

1) Login/logout and keeping login session alive

2) Browsing events, loading markets data and updating them (prices, bets, and so on)

3) Implementing base bots

The application loads horse racing win markets and allows monitoring currently selected market/race in 200ms refresh interval.

In advance bot application you can create different mechanism for monitoring a lot of markets in different refresh interval.

You can use following methods BfexplorerService offers: GetMarkets, GetMarketsWithActiveBets, UpdateMarket, UpdateMarketBaseData, UpdateMarketData, UpdateMarkets, UpdateMarketStatus, UpdateMarketStatuses.
All of those methods are used in my trading application:

http://bfexplorer.net/Products/Bfexplorer

Depending on bot type (for what purpose was implemented), betfair bot can place bets on more market selections or just operate on one market selection. You can execute as many bots on market as you want, or your strategy requires.

You can simply put together different bots without programming just by setting bots entry parameters, watch this video to see how to construct spoofing bot without programming:

In this simple application there is not implemented mechanism for saving and setting up different bot settings. I added just list of bot settings you can change and execute selected bot with its current settings. All these bots have default settings so you can just execute a bot and see what bets it will place. I added only bots which in this app context make sense.

When programming your own betting or trading strategy, you can use these bots just for base operations, your strategy will define time, selection, bet type and bot type (and so on) you want to execute.

By default JayBeeBot app is set to work in practice mode, so no bets are placed at betfair.

When you look on code, the code in Helpers and Models folders is just plumbing code not required when using BfexplorerService in app using WPF user interface library, also any async methods as my BOT SDK is programmed in F#, requires using of some wrappers code to interact with other .NET languages. If I programmed this simple app in F# it would be done by maybe 60% of code. You can see differences in other similar projects, just compare MyCsharpBot and MyFsharpBot.

JAYBEE, now it is your turn to show us your bot code or libraries, and how simply we can use them to build what I present here.

https://forum.bdp.betfair.com/showthread.php?t=3159

In your bot I saw, you implemented just Fill or Kill bot, here I present working bots for:

Place Bet
Be The First in Queue
Fill Or Kill
Close Selection Bet Position
Close Selection Bet Position At Odds
Tick Offset
Scratch Trading
Trailing Stop Loss
Close Market Bet Position
Trailing Stop Loss On Market

  • Add Your Comment

    +

    Please login to your bfexplorer account, if you want to add a comment to this article.

Comments ( 2 )


  • Stefan
    27.4.2016 14:39:34

    Betfair once again removed my Betfair BOT SDK from their developers web site:

    https://developer.betfair.com/

    I do not think this approach is in betfair interest as betfair business model works on commission fees on exchanges.

    More customers, means more commission fees for betfair. Bot developers make significant turnover on betfair markets, so leaving those developers without easy to use betfair bot sdk libraries like mine is contra productive from my point of view.

    I have got a feeling, that removing my BOT SDK from developers web site is just an opinion of one person in betfair, Neil Thomas. He is welcome on bfexplorer forum, to say why it is so. His opinion as well as any links to other betfair vendor products will never be deleted from this forum.

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

    http://forum.bdp.betfair.com/showthread.php?t=3174&page=3

     

    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.