Lefora Free Forum
320 views

Just starting

Page 1 · 2
posts 1–20 of 35 newer >
rookie - member
4 posts

Firstly like to say hello, and thanks to the providers of this forum.

Hoping for a bit of advise from the users here and have a few questions though I understand why people maybe secretive.

I've just started botting, i'm using gruss/excel/vba at the moment to develope the logic side of it. Then IF i can get it working move to direct api. I'm focusing on football as it offers the liquidity but appears to have slightly less bot competition than the horses. Am i Right?
The current system is designed to basically buy low sell hi etc. using a volatility calculation to discover suitability? Theres a little more to it than that but i wouldnt like to give it away for free. Just starting the testing tomorrow. I'm sure that some of you guys have tried something similar and wondering if you have any advice? Thanks

novice - member
45 posts

Hi cluckhead - If you need technical help with building a bot, you've come to the right place, but as you point out, "system" - type info is something we all prefer to keep close to our chests.

Having said that, my general advice is to go 'live' as early as you can, even if it's just for minimum stakes. The main reason for this is that dummy systems quite often think that they are 'on' at a price, whereas if you place a live bet, especially in a trading-style system such as yours, you will find that someone got there first and snapped it up.

That brings up the second major piece of advice I would give someone building a trading app - speed is of the essence, so do all you can to reduce your latency. If you read back through this forum you will find a few threads covering this in some detail, especially regarding choice of ISP and hosted services.
Not sure how much of your prototype system is in excel, but if it makes heavy use of worksheet functions and data stored in cells you might want to move as much as you can into vba to speed things up.
Never used gruss, but their flash-based website looks a bit amateurish. That doesn't mean their VB.NET stuff will be as bad, but I would suggest benchmarking it for fetching prices and striking bets to make sure it's not a serious bottleneck. Other than that, all I can say is good luck and a Happy New Year.

regular - member
123 posts

Hi cluckhead ... You'll be up against these guys on the football ... http://www.bettingpromotion.se/Default_eng.aspx ... with their 'agreement' with betfair ... best of luck!

novice - member
20 posts

It is my favorite market too and it was quite good approach to program a trend bot.

regular - member
123 posts

can you stop spamming the forum with your screenshots please? :)

superstar - member
230 posts
If you're planning on sticking with Windows and Excel, VBA might be a good choice as it's fairly simple once you understand how to write your own code (which is pretty simple). I used to write all my bots in VB6 and there are some code samples in the 'Code Snippets' area of this forum. Note, however that i always preferred to scrape the main website rather than use the free API...main reasons being that the free api is too restricted for practical use.

Having moved from Windows to Ubuntu Linux, i'm now learning the Python programming language. Following that, i'm going to have a play with the Betdaq API. It's quite sad that Betfair are now starting to abuse their position as the biggest exchange...so many punters are now seeking better value elsewhere....


Stefan:
You keep posting all these screen shots and stuff. Looks like a nice program you have there. I assume it's an open source project?
__________________
regular - member
184 posts
Birchy will probably laugh at me here and I guess I'm prepared for it, but I just had a look through the excellent tutorial which takes you through the basics of getting a bot started using Visual Basic 2008. That tutorial can be found here:

http://bdpsupport.betfair.com/ics/support/default.asp?deptID=2805

Found a few things with it, most of them positive. One, it is incredibly fast. The returns from my java bot are slooow in comparison to the returns from the VB2008 one.

The second is how incredibly simple visual basic is to use. I'm sure there are complicated things in there, but to be honest, most of it seems fairly simple. Lots of Withs and so on, which I wish worked in Java, although thats just syntax. And now I think about it, its quite possible I've seen something like the With statement in Java. I think programmers are a funny lot - not many people are pleased to have their ignorance exposed like this. I am though.

One negative thing I found was that their doesn't seem to be an obvious JTable replacement in VB2008 - feel free to contradict me if I'm wrong though.

Anyway, to make sure I don't get hit with a -1 Off-topic (oh thats slashdot) I'll say this:

cluckhead, I started off with absolutely no idea of programming but an interest in making money. Someone introduced me to Betfair a few months before I was due to start a basic Java programming course at the open university. Didn't take me long to discover the API and from there, I've been programming little bots here and there and everywhere, using Java. I'm currently considering a couple of different languages to bot in, generally to try to break myself out of a single way of thinking, which I have heard is good practice for programmers.

It looks like I'm rambling here, but I have a purpose.

Jump in with both feet, but use a sensible amount of caution at the same time. It sounds like you are planning something along the lines of using a weight of money calculation in order to determine your bets and so on, possibly with a bit of momentum trading in there as well. Unlike the betfair forums, I don't think anyone here has a problem with momentum trading - to my mind it increases the liquidity and volatility of the market, which can only be a good thing.

The way I do my bots is by designing a simulation mode to get the algorithms right, then switching to a live mode as soon as possible. Simulation mode is easy enough to do, just don't forget to use the delay figure given to you by the API when you place your bets. If you place a back bet at 1.8 and the price drops to 1.76 within the delay period, you won't be matched. If you don't factor in the delay, your simulation mode won't give you accurate figures. In the same way, factor in the amount available when you place the bets. If you place the bet ok but there is nothing there to be matched, it can throw your trading figures right off.

Using spreadsheets and gruss and so on is great to get an idea of whether your system will play and to analyse your results, but as the other guys have said, get as close to the action as possible. That means pare away the layers and resign yourself to the fact that you are just about to embark on a fairly steep learning curve, with fantastic possibilities at the top of it.

You will get a lot of support from the guys here, just remember the golden rule when you are asking a question in a tech forum: Make sure you know exactly what question you are asking and show that you have made a decent effort at solving it yourself. Satisfy those two criterion and you will find there is no such thing as a stupid question, it is just a question you personally haven't found an answer to. Some of the maths questions I have asked here are embarrassing when I reflect on them, but sometimes thinking about something too much turns your brain to mush.

Have fund with it!
__________________
Slashdot. It's like Digg on slow, but sensible.
novice - member
20 posts

Yes, the source code of all bots is free available, but not the transactional betfair api access.

superstar - member
230 posts
Stefan:
It's good to know that the source code is available...but can it be used without purchasing your 'transactional betfair api'? In other words, are you actually donating useful advice or simply using this 'DIY' forum to advertise your commercial applications?

Alan:
Do you have a direct link? That one goes to the BDP front page? Anything .Net is a pretty good suggestion...and i'm wondering if it'll work under Mono? I know i'm always spouting about VB6 but it IS my first love and there isn't a single, modern-day programming language that can match it on both RAD development (including GUI) AND compiled execution speed. Never-the-less, since adopting Ubuntu, i've taken a less blinkered view towards programming. I'm quite enjoying Python but am finding it somewhat incomplete in certain areas. In particular, the documentation of 3rd party libraries is generally quite poor. On the other hand, there are some exciting looking projects such as PyPy who are basically compiling high-level Python code into highly efficient, stand-alone machine code. Although it's still a little rough around the edges, i think Python could be THE language of the future.
__________________
regular - member
184 posts
Thats a link to the content page:

http://bdpsupport.betfair.com/ics/forum/Client/Common/ContentView.aspx?contentID=81415

Whether or not that one works properly is another question - I tried to bookmark it and it just wouldn't play. I think there is a session code involved there somewhere.

If that doesn't work for you, go into the forum, then the MS.NET Development forum, then the topic you are looking for is 'Using VB2008 to access the Betfair API'.

The guy who posted it is called Mumbles and the tutorial is fantastic. Really very good indeed.

On another slightly different note, I've just completely given up manual trading - every time I piss around with it I get bitten on the arse by an unexpected goal. I think I'm just going to stick to my system of analysing the way odds move, looking at odds which have a low 'through' resistance (IE, 1.1 takes a while to go through, but 1.07 can just be completely blown past as if it doesn't exist) and doing the automated trading. Sick of losing  through manual trading.
__________________
Slashdot. It's like Digg on slow, but sensible.
superstar - member
230 posts
Try this:
VB2008 Tutorial
Hopefully, that should link direct to the VB2008 thread. Can someone please confirm?
__________________
superstar - member
230 posts
Ok, scratch that. Can't direct link by the looks of it...not even via 3 redirects from the correct pages. lol

Easiest way to find is to go to the BDP Homepage and then click 'Discussion Forum' and type 'VB2008' into the search box. As stated by Alan, the thread is titled 'Using VB2008 to access the Betfair API'.
__________________
regular - member
184 posts
That link seems to work for me birchy.
__________________
Slashdot. It's like Digg on slow, but sensible.
novice - member
20 posts

Birchy, my bot framework uses the betfair web services not web page scrapping and is optimized for betfair transactional api which costs 200 GBP per month, you certainly know it if not go to bdp.betfair.com, therefore I am not able to offer it for free.

I hope you are, so you will kindly offer for free your transactional betfair api access and I will build tomorrow the version which will be freely distributed, all I need from you or other member which uses betfair api (I know that fred uses it), the betfair software vendor id and application id, that is really all I need and we can share it.

I am on this forum for 6 month now, am familiar with many programming languages well, I am software developer from profession. For that time being here I did not see a piece of code, a bot code which would run the simplest betting or trading solution, on its own, just code snippets of very poor quality in most cases. In all my bot development replies here I offered simple solutions with couple lines of code which could be run in a minute after installing the bfexplorer framework. I think a good startup for everyone who wants to build its own bot scripts.

For instance 180 lines of code for a bot solution which uses the horse last form to place a bet or trade on all UK horse racing win markets as an example.

http://diybetfairbots.lefora.com/2008/12/09/horse-form-a-selection-parameter/page1/#post1983925

superstar - member
230 posts
Ouch, did i hit a raw nerve? Laughing
This is not my forum, so this is only my opinion, but advertising of commercial programs is not something that we want to see. Not sure about anyone else, but the whole spirit of this forum (and previously Fredd77), is DIY betting programs. We share code as and when required. We discuss ideas. We help each other wherever possible. We debug other peoples code. There are nearly 900 posts in this forum. We do it for the love of gambling and programming...not because we want to leech ideas and sell them for commercial gain.

My point is that everything you have posted is somehow related to bfexplorer....which is not free. There's a free API or you can scrape the website. Both methods are free, and THAT is the spirit of this forum....


Alan:
Yes mate, that link works fine...until you close the browser and then try it.
__________________
regular - member
184 posts


Alan:
Yes mate, that link works fine...until you close the browser and then try it.

-birchy



Ahh, that was what I hadn't tried to do....
__________________
Slashdot. It's like Digg on slow, but sensible.
rookie - member
4 posts

Thanks for your advice, very encouraging. Are any of you guys making any money from this or is it just an expensive hobby? I've got a feeling that is what its going to be for me.

novice - member
37 posts

I'm not making any, but not losing any either. So long as I can keep that going, then I've always got the chance of discovering something that works.

One point to raise with myrrdin though about speed.
If you're looking to capture the spread (aka "make markets") then each pip is valuable and yes, I agree speed is critical. But in markets with 5 - 10 seconds of delay in bet placement, I'm not sure how much benefit saving 100ms is. I guess it all counts.

If however you are taking risk i.e. taking a position, holding it for some period then exiting, then speed is less critical. Here the margins are wider (for winning and losing) and missing 1 or 2 pips is less of a big deal.

superstar - member
230 posts
Well i'm not botting at the moment and there are a number of reasons for this, one of which is that i moved from Windows into Linux, so i'm still finding my feet...especially on the programming side of things. The main reason is that after a number of years trying to beat the system, i finally concluded that i wasn't actually achieving anything. If you sit back and take a very simplistic view, it should become obvious that regardless of your betting strategy, you have to beat commission. In essence, Betfair is the biggest 95% paying fruit machine in the world. So it is actually quite difficult to break even in the LONG run...but not impossible.

I once devised a Greyhound Racing bot which was actually my most profitable bot of all...and ironically, i know NOTHING about dog racing. All told, i think i ran it for about a year solid and ended up with £400 clear profit to small stakes (i.e. no more than £5 per bet risk). It placed bets all day, every day, so we're talking tens of thousands of pounds worth of transactions....all for £400. I've been betting for 17 years and devoted much of that time to try and make an 'easy' living. The fact that i'm still working full time as an Engineer speaks for itself. Do it for fun but but don't let it take over your life (easier said than done).

Learning how to get a bot working is actually quite a steep learning curve at first, but once you understand the http stuff, you can re-use your code over and over again for every bot. Stefan's 'bot framework' (or whatever he calls it) is a great idea and i'm surprised that Betfair haven't already released something like this to encourage Jo Public to automate their strategies. At the end of the day, the backbone of EVERY single bot is the http stuff...so it makes sense to package it into a universal library and provide a simple strategy building front end. Now that gives me an interesting idea...

Stefan, to quote you from above, you said that all you have seen on this forum is "code snippets of very poor quality". How would you like to help us all out by showing how to write PROPER bot code? Obviously, nobody wants to share their betting strategies, but why not share your bot framework, or at least the important (http) parts of it? As you said above, if i could: "offer for free your transactional betfair api access and I will build tomorrow the version which will be freely distributed". Well there are several solutions to that: Web scraping (ANY betting exchange), Betfair's free API and of course Betdaq's free API. What do you think?
__________________
regular - member
123 posts

What's this??: "if i could: "offer for free your transactional betfair api access and I will build tomorrow the version which will be freely distributed".?"

If you're a software vendor paying your £200/mnth or £2000/year to betfair it's then up to you what you charge your customers.

Page 1 · 2
posts 1–20 of 35 newer >

This Topic Is Locked To Guest Posts

It's been a while since this topic was active, if you'd like to get it going again, please post as a registered member

join now