Getting traded values off a chart...

Please post any questions regarding the program here.

Moderator: 2020vision

Getting traded values off a chart...

Postby JayBee » Mon Oct 25, 2010 2:38 pm

On each runner's chart the table on the right contains the amount traded for each odds.

It would be good to get these values off the chart (plus the associated odds) and into Excel.

Any ideas?
JayBee
 
Posts: 17
Joined: Sat Jan 07, 2006 5:09 am

Postby GaryRussell » Mon Oct 25, 2010 3:11 pm

It's only possible if you use the COM interface. See http://gruss-software.co.uk/forum/viewtopic.php?t=3726 for an example.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby JayBee » Mon Oct 25, 2010 3:18 pm

Just what I needed. Thank you.
JayBee
 
Posts: 17
Joined: Sat Jan 07, 2006 5:09 am

Postby JayBee » Mon Oct 25, 2010 10:31 pm

I just realised this is not what I require.

I don't want the total matched for a race, I want the amount matched for each odds and for each horse. ie Nag A, £120 matched at 3.0, £89 matched at 3.1, £223 matched at 3.2 and so on.
JayBee
 
Posts: 17
Joined: Sat Jan 07, 2006 5:09 am

Postby Captain Sensible » Tue Oct 26, 2010 12:16 am

getAllTradedVolume gives you that information
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby JayBee » Tue Oct 26, 2010 12:29 am

Okay, so I get a big string to parse. Thanks.
JayBee
 
Posts: 17
Joined: Sat Jan 07, 2006 5:09 am

Postby Captain Sensible » Tue Oct 26, 2010 4:11 pm

Unfortunately thats the way the data's output, can't imagine there's anyeasy way for it to be sent to the screen due to the number of price increments and numbers of runners etc. Guess you'd have to let vba do all the hard work before getting the exact info you need rather than excel functions
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby alrodopial » Tue Oct 26, 2010 7:34 pm

Or you can call the individual pages of the horses you want in excel using links like the below with the info you want

http://uk.site.sports.betfair.com/betti ... rrency=EUR

You need the race id which is available from BA and the horses' id which I think Garry will provide for every horse in a feature release (I think).
These web queries are not so quickly like updating the odds but if you only want few data (horses) and not so often they maybe good for you.

Or only the:

http://uk.site.sports.betfair.com/betti ... Id=4244566
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby JayBee » Wed Oct 27, 2010 2:35 pm

I tried the COM interface and get...

Run-time error '-2147024894 (80070002)':

File or assembly name BettingAssistantCom, or one of its dependencies, was not found

Any ideas?
JayBee
 
Posts: 17
Joined: Sat Jan 07, 2006 5:09 am

Postby GaryRussell » Wed Oct 27, 2010 2:40 pm

Did you follow these instructions from the user guide?

Locate the program Excel.exe where your Microsoft Office program files are installed.

A file named Excel.exe.config needs to be created in the same folder if it does not already exist.

Edit the file with Notepad and insert the following lines.
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v1.1.4322"/>
</startup>
</configuration>
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby JayBee » Wed Oct 27, 2010 2:49 pm

100%.

Removed v65 and replaced with v66

Put config file next to Excel.exe

Turned the COM interface on in preferences.

Started the XLS file. Started macros when prompted.

Found a race in BA and then started logging to Excel.
JayBee
 
Posts: 17
Joined: Sat Jan 07, 2006 5:09 am

Postby GaryRussell » Wed Oct 27, 2010 2:58 pm

If you view the Excel code editor and select "References" from the tools menu does it have "BettingAssistantCom" ticked? It may also show this with "missing" next to it which would be a problem.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby JayBee » Wed Oct 27, 2010 3:02 pm

BettingAssistantCom is ticked.

I am running Excel 2000 (9.0.3821 SR-1) if that is of any help.

I can't afford to update. I normally run Linux but am using BA on a Vista machine with whatever is on it.
JayBee
 
Posts: 17
Joined: Sat Jan 07, 2006 5:09 am

Postby GaryRussell » Wed Oct 27, 2010 3:08 pm

Are you sure you named Excel.exe.config properly? I had a user with the same problem and they had file extensions hidden in Windows Explorer and after unhiding file extensions we could see that the file was actually named Excel.exe.exe.config which was incorrect.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby JayBee » Wed Oct 27, 2010 3:20 pm

Same name, no go.
JayBee
 
Posts: 17
Joined: Sat Jan 07, 2006 5:09 am

Next

Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 51 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.