Laying pre-off £2 liabilty

Please post any questions regarding the program here.

Moderator: 2020vision

Laying pre-off £2 liabilty

Postby NorthView » Sat Feb 18, 2023 12:27 pm

I'm getting apparently random failures to lay horses via Excel for a liability of £2.

The lay doesn't appear in Gruss or in the transaction log but the workaround lay at odds of 1.03 does.

Other lays are executed fine and I can't see any difference between the succesfuls and the failures.

The BA_Diagnostic-2023-02-18.log doesn't contain any clues.
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Re: Laying pre-off £2 liabilty

Postby GaryRussell » Sun Feb 19, 2023 3:47 am

I will be releasing an update shortly and will include more information in the diagnostic log to catch this. Do you know what the specific odds and stake are for any of these bets?
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: Laying pre-off £2 liabilty

Postby NorthView » Sun Feb 19, 2023 12:06 pm

Thanks Gary.

Some of these are layed correctly, some aren't.

One from yesterday I had to lay again manually was at 7.4 for £0.31

All of today's were fine but the next day it happens I'll post the info from the transaction file.
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Re: Laying pre-off £2 liabilty

Postby NorthView » Tue Feb 21, 2023 12:06 pm

Two errors today: Premiumaccess and Tollerton Forest

:
Gruss1.jpg
Gruss1.jpg (253.75 KiB) Viewed 5110 times
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Re: Laying pre-off £2 liabilty

Postby NorthView » Tue Feb 21, 2023 12:20 pm

Just had a thought. I'm rolling through a list of races with refresh = 0.5 seconds and pausing at each for 3 refreshes in VBA before moving to the next.

Is this a factor?
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Re: Laying pre-off £2 liabilty

Postby Captain Sensible » Tue Feb 21, 2023 4:49 pm

The API errors in the above screenshot each occur with a liability of less than £2. Maybe you need to tweak your stake calculation
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Re: Laying pre-off £2 liabilty

Postby NorthView » Tue Feb 21, 2023 8:55 pm

Other lays less than £2 liability went through fine eg

Gruss2.jpg
Gruss2.jpg (14.18 KiB) Viewed 5079 times
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Re: Laying pre-off £2 liabilty

Postby NorthView » Wed Feb 22, 2023 12:09 pm

Raised the liability to £2.10 but still Noahs Abbey failed:

Gruss3.jpg
Gruss3.jpg (150.5 KiB) Viewed 5065 times
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Re: Laying pre-off £2 liabilty

Postby Captain Sensible » Wed Feb 22, 2023 12:32 pm

Is it gruss laying at these weird stakes of 0.128888 or your calculations? Could you not simply round () the stake before it's submitted see if that clears any failures.
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Re: Laying pre-off £2 liabilty

Postby Captain Sensible » Wed Feb 22, 2023 12:33 pm

Round to 2 decimals*
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Re: Laying pre-off £2 liabilty

Postby NorthView » Thu Feb 23, 2023 12:09 pm

Thanks CS. I'm rounding to 2 DP now and got two errors today:


Gruss4.jpg
Gruss4.jpg (293.64 KiB) Viewed 5038 times



This is through triggered betting in Excel. When I later go into Gruss to cancel the workaround lays and place the lays I want manually they always work correctly.
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Re: Laying pre-off £2 liabilty

Postby GaryRussell » Thu Feb 23, 2023 1:12 pm

I will release an update tomorrow. Hopefully this will reveal what's going on in the diagnostic log. In the meantime if you have time could you send today's diagnostic log to admin@gruss-software.co.uk. I know you said it does not contain any clues, but I might see something that isn't obvious.
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: Laying pre-off £2 liabilty

Postby NorthView » Thu Feb 23, 2023 3:16 pm

Thanks Gary. I've sent the diagnostic log.
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Re: Laying pre-off £2 liabilty

Postby GaryRussell » Thu Feb 23, 2023 6:08 pm

NorthView wrote:Just had a thought. I'm rolling through a list of races with refresh = 0.5 seconds and pausing at each for 3 refreshes in VBA before moving to the next.

Is this a factor?


Looks like it is the issue. The next market is starting to load before the minimum bet process is complete.

1) When you link to Excel do you have "Place bets in background ..." ticked? I recommend it is not ticked so that it won't move to next market until bet processing is complete.

2) Does the code that inserts "-1" into cell Q2 only execute after the prices refresh? ie. it would look something like the following. I always recommend using the trigger at this point to avoid any issues.

Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Columns.Count = 16 Then
        If refreshCount = 3 Then
            Application.EnableEvents = False
            [Q2] = -1
            Application.EnableEvents = True
        End If
    End If
End Sub
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: Laying pre-off £2 liabilty

Postby NorthView » Fri Feb 24, 2023 1:33 pm

Right. I made both of those changes and today's lays went in perfectly. I'll continue to check but I think it's fixed now.

Cheers Gary.
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London


Return to Help

Who is online

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