COM - ba.getAllTradedVolume

Please post any questions regarding the program here.

Moderator: 2020vision

COM - ba.getAllTradedVolume

Postby xdg99667 » Tue Apr 05, 2011 1:38 pm

Hi all,

Appologies if this is a silly question but...

just getting to grips with the COM class within BA

I'm trying to get the lowest price that a horse traded at. (for calling as the event is just finished - to give me the lowest in play price)

I have looked at the example, where it has

= tradedVol(i).actualBsp
= tradedVol(i).totalBspBackMatchedAmount
= tradedVol(i).totalBspLiabilityMatchedAmount

so what I'd like is a .LowestTradedPrice or something like that

While I'm here I've been trying to find all the 'items' eg '.actualBsp' that are avaliable for ba.getAllTradedVolume but I cant find a list?

Big thanks, Gary
xdg99667
 
Posts: 22
Joined: Wed Jan 27, 2010 11:39 am

Postby GaryRussell » Wed Apr 06, 2011 12:01 pm

There is a problem with that API call. At the end of the race the API does not return data. It would be better to scrape the information from the website.

You can scrape it using the following URL.
http://uk.site.sports.betfair.com/betti ... rrency=GBP
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby xdg99667 » Wed Apr 06, 2011 2:37 pm

much obliged Gary

Can you tell me where I can get a list of the properties attached to each object in the COM?
xdg99667
 
Posts: 22
Joined: Wed Jan 27, 2010 11:39 am

Postby GaryRussell » Thu Apr 07, 2011 8:27 am

They are listed in the user guide here

getAllTradedVolume is not listed, but will be in the new user guide due to be released when the Beta version is promoted to the official release.

getAllTradedVolume returns an array of TradedVolumeSelection objects. The properties are as follows.

selection:String - selection name, eg. name of horse
actualBsp:Double - Post-reconciliation, this is the Betfair Starting Price. Prior to reconciliation in BSP markets, this field contains zero. This will contain zero for all non BSP markets at all times.
totalBspBackMatchedAmount:Double - In BSP markets, post-reconciliation, this is the total amount of BSP back bets matched. Pre-reconciliation, this field contains zero. The field will contain zero for all non BSP markets at all times.
totalBspLiabilityMatchedAmount:Double - In BSP markets, post-reconciliation, this is the total amount of liability matched for BSP lay bets. Pre-reconciliation, this field contains zero. The field will contain zero for all non BSP markets at all times.
tradedVolumes:Array of TradedVolume


TradedVolume has the following properties.

odds:double
totalBspBackMatchedAmount:Double - As above. The same figure.
totalBspLiabilityMatchedAmount:Double - As above. The same figure.
totalMatchedAmount:Double - The total amount matched for the given odds.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby xdg99667 » Fri Apr 08, 2011 11:06 am

great stuff, thanks Gary
xdg99667
 
Posts: 22
Joined: Wed Jan 27, 2010 11:39 am


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 36 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.