Problem with GetPrices

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

Problem with GetPrices

Postby ipgriffiths » Fri Jun 20, 2008 7:23 pm

Hi,

Firstly, I have joined up after using BA on trial for a month, and think it is superb - thanks for the hard work that has clearly gone in to it!

I have a small problem with some VBA I am writing. I have got it picking up in each race in turn, and 90 seconds before it starts I need it to grab the latest runners and prices.

I have got it to open up the correct market, and see it do so on the BA interface. However, when I call GetPrices, it sometimes reverts to what seems to be a random race from earlier in the day.

I am using the code pinched from the example in the help section:

"prices = ba.getPrices
x = 8
For Each priceItem In prices
x = x + 1
Cells(x, 2).Value = priceItem.Selection
Cells(x, 3).Value = priceItem.backOdds1
Cells(x, 4).Value = priceItem.layOdds1
Next"

Has anyone else had any similar issues, or got any tips on how to use the GetPrices function? I suspect I am missing a trick!

Many thanks,

Ian
ipgriffiths
 
Posts: 1
Joined: Fri Jun 20, 2008 7:28 am

Postby laffo16 » Fri Aug 22, 2008 8:10 am

a ha, tought i remembered reading this somewhere, i havent quite put my finger on where the problem is yet but im having exactly the same problem where the previous markets data is taken from getPrices().

my code runs as follows:
loop {
$BAcom.openMarket()
$prices = $BAcom.getPrices()
}

in the first call of getPrices, it takes the prices from the market which was open previously. But all markets their for after seem to be ok. Acutaly come to think of it, i didnt check the other markets specificly. Will do more testing and post my findings later.
User avatar
laffo16
 
Posts: 172
Joined: Sun Jan 27, 2008 6:52 pm

Postby laffo16 » Sat Aug 23, 2008 3:34 am

Basicly when you change market using openMarket(), getPrices() requires approximately 0.1 secs to refresh its content with the new market otherwise it uses the data from the prev market.
User avatar
laffo16
 
Posts: 172
Joined: Sun Jan 27, 2008 6:52 pm


Return to Discussion

Who is online

Users browsing this forum: No registered users and 40 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.