ba.getbalance

Please post any questions regarding the program here.

Moderator: 2020vision

ba.getbalance

Postby neeeel » Sun Nov 16, 2014 3:04 pm

There seems to be an intermittent problem with the getbalance function. I have a sheet that is refreshing the balance every 5 seconds or so via COM, and every now and then I get a type mismatch error. The only explanation I can think of is that sometimes, no data is returned( perhaps an empty array or something?) and I am trying to set an object. As I say, it will work fine for hours, and then I will get the error randomly. It also happens if I try to use a variant rather than an object to assign the getbalance value.



Also, sometimes, when using the getprices function, each horse in a race will be returned as ( NR) even though non of them are non runners, then the next time I grab the prices, its back to normal again. I dont know if this is a problem at betfairs end, or gruss.
neeeel
 
Posts: 111
Joined: Sun Jun 27, 2010 1:14 pm

Re: ba.getbalance

Postby neeeel » Sun Nov 16, 2014 5:22 pm

also, there seems to be a problem with getbet. When I use getbet before the market is settled, it returns the correct matcheddate value. When the market is settled, the matcheddate value is 00:00:00
neeeel
 
Posts: 111
Joined: Sun Jun 27, 2010 1:14 pm

Re: ba.getbalance

Postby GaryRussell » Mon Nov 17, 2014 3:06 pm

I will investigate.
User avatar
GaryRussell
Site Admin
 
Posts: 9893
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: ba.getbalance

Postby rourkem » Tue Nov 18, 2014 9:14 am

+1. Will be waiting for updates here.
Windows 8 | Framework 2.0 Image
User avatar
rourkem
 
Posts: 166
Joined: Tue Oct 28, 2014 3:20 pm

Re: ba.getbalance

Postby GaryRussell » Tue Nov 18, 2014 1:32 pm

neeeel wrote:also, there seems to be a problem with getbet. When I use getbet before the market is settled, it returns the correct matcheddate value. When the market is settled, the matcheddate value is 00:00:00

Unfortunately this information is not available in API-NG, only the placed date.
User avatar
GaryRussell
Site Admin
 
Posts: 9893
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: ba.getbalance

Postby neeeel » Tue Nov 18, 2014 2:30 pm

so when I am getting the date before the bet is settled, its not the matcheddate, but the placed date? Why does it changed to 00:00:00 once the bet is settled?
neeeel
 
Posts: 111
Joined: Sun Jun 27, 2010 1:14 pm

Re: ba.getbalance

Postby GaryRussell » Tue Nov 18, 2014 2:50 pm

neeeel wrote:so when I am getting the date before the bet is settled, its not the matcheddate, but the placed date? Why does it changed to 00:00:00 once the bet is settled?

It is the matched date before settlement. The settled details are fetched with a different API call which does not return the matched date. The pre settled information is no longer available so it cannot make a call to get the matched date after settlement.
User avatar
GaryRussell
Site Admin
 
Posts: 9893
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: ba.getbalance

Postby neeeel » Tue Nov 18, 2014 2:51 pm

Ok thanks for the explanation. Any luck with the other things I mentioned in the first post?

Another thing that isnt working. I am placing bets using ba.keepbetType = 2, ie convert to SP at in play. Sometimes the bet isnt matched at all, and lapses at the end of the race. What am I doing wrong? It worked fine in the old version.
neeeel
 
Posts: 111
Joined: Sun Jun 27, 2010 1:14 pm

Re: ba.getbalance

Postby GaryRussell » Tue Nov 18, 2014 3:10 pm

neeeel wrote:Ok thanks for the explanation. Any luck with the other things I mentioned in the first post?

Another thing that isnt working. I am placing bets using ba.keepbetType = 2, ie convert to SP at in play. Sometimes the bet isnt matched at all, and lapses at the end of the race. What am I doing wrong? It worked fine in the old version.

Do these bets also show as keep bets on the Betfair website? If they do then they are being lapsed by Betfair and not under Betting Assistant's influence. Are they lay or back bets and are they under Betfair's minimum of £2 liability for back bets and £10 liability for lay bets?
User avatar
GaryRussell
Site Admin
 
Posts: 9893
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: ba.getbalance

Postby GaryRussell » Tue Nov 18, 2014 3:10 pm

I am still investigating your other issues.
User avatar
GaryRussell
Site Admin
 
Posts: 9893
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: ba.getbalance

Postby neeeel » Tue Nov 18, 2014 3:34 pm

GaryRussell wrote:
neeeel wrote:Ok thanks for the explanation. Any luck with the other things I mentioned in the first post?

Another thing that isnt working. I am placing bets using ba.keepbetType = 2, ie convert to SP at in play. Sometimes the bet isnt matched at all, and lapses at the end of the race. What am I doing wrong? It worked fine in the old version.

Do these bets also show as keep bets on the Betfair website? If they do then they are being lapsed by Betfair and not under Betting Assistant's influence. Are they lay or back bets and are they under Betfair's minimum of £2 liability for back bets and £10 liability for lay bets?


When using the old version of BA, I could set keepBetType to 2, place bets ( back or lay) using the COM server ( ba.placebet) for any amount ( under or over £2), the bet was placed in the market immediately, and if the bet wasnt matched, it was taken at SP at the start of in play. This is different from using the trigger sheet to place a BACKSP or LAYSP bet, which had the minimums liability or stake of £2 or £10

The ones that are lapsed are marked with a persistence of P in my betfair account.
The ones that get matched before in play are market with a persistence of C in my betfair account.

thanks

.
neeeel
 
Posts: 111
Joined: Sun Jun 27, 2010 1:14 pm

Re: ba.getbalance

Postby neeeel » Tue Nov 18, 2014 3:52 pm

ok i just placed a test bet manually in BA with a stake less than £2 and take SP ticked, it was cancelled at in play, so either I was imagining that I did this, or betfair have changed it with the new API, so scrub that one off the list
neeeel
 
Posts: 111
Joined: Sun Jun 27, 2010 1:14 pm

Re: ba.getbalance

Postby GaryRussell » Tue Nov 18, 2014 4:19 pm

neeeel wrote:ok i just placed a test bet manually in BA with a stake less than £2 and take SP ticked, it was cancelled at in play, so either I was imagining that I did this, or betfair have changed it with the new API, so scrub that one off the list

Was it a lay bet? Back bets work below minimum and did previously, but lay bets didn't.
User avatar
GaryRussell
Site Admin
 
Posts: 9893
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: ba.getbalance

Postby neeeel » Tue Nov 18, 2014 4:32 pm

GaryRussell wrote:
neeeel wrote:ok i just placed a test bet manually in BA with a stake less than £2 and take SP ticked, it was cancelled at in play, so either I was imagining that I did this, or betfair have changed it with the new API, so scrub that one off the list

Was it a lay bet? Back bets work below minimum and did previously, but lay bets didn't.


Yes it was a lay bet
thanks
neil
neeeel
 
Posts: 111
Joined: Sun Jun 27, 2010 1:14 pm


Return to Help

Who is online

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