API error when laying a bet

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
the4droogs
Posts: 78
Joined: Sun May 10, 2020 11:47 am

Hi,

I built a bot recently which was very nice and easy to do with BetAngel's automation feature in Guardian. Most of the time it works well, but occasionally I noticed some strange behaviour. The bot is designed to cancel unmatched bets in some situations then place a lay bet at the best reverse market price plus one tick. the amount of this bet is set to the net stake.

Occasionally I've noticed that the bot is placing the lay bet for $5 at a price of 1.01. So both the price and the stake are incorrect. I caught it red-handed in the act today and had a look at the log files. The only clue was that the exception was thrown below:

Exception: Exception of type 'BetAngelHelper.APINGException' was thrown.

Not overly helpful as I'm guessing this is a fairly standard exception that covers a lot of different errors.

After this I turned off automation for the market in question and went to the ladder view. I cancelled existing bets and tried to manually put a bet on for $1 at a price of around 4. The lay bet was put on, but again it was at 1.01 for a stake of $5. Strange behaviour. Is this a known bug? If so is it at BetAngel's end or Betfair's (I should have thought to try and put a bet on through the betfair UI but unfortunately I didn't)?
User avatar
Dallas
Posts: 23599
Joined: Sun Aug 09, 2015 10:57 pm

Its at Betfairs end
viewtopic.php?f=55&t=1162&start=4939

But there is a new build of Bet Angel released earlier this evening that has a fix to overcome the issue until Betfair sort it out
viewtopic.php?f=46&p=224747
the4droogs
Posts: 78
Joined: Sun May 10, 2020 11:47 am

Brilliant. Thank you.
the4droogs
Posts: 78
Joined: Sun May 10, 2020 11:47 am

I have version 1.54.2 now. This issue with laying a bet and it being placed at 1.01 is still happening, although less frequently. The bets also seem to be placed at 1.02 now rather than 1.01. Is there any word yet from Betfair about if and when it will be fixed at their end?
User avatar
Dallas
Posts: 23599
Joined: Sun Aug 09, 2015 10:57 pm

the4droogs wrote:
Sun Jun 21, 2020 8:10 am
I have version 1.54.2 now. This issue with laying a bet and it being placed at 1.01 is still happening, although less frequently. The bets also seem to be placed at 1.02 now rather than 1.01. Is there any word yet from Betfair about if and when it will be fixed at their end?
No word from Betfair yet, but we now know its something they changed on purpose

In the bottom right corner of your blue login window does it show V1.54.2b?

If not you need to re-download and install it again, yesterday morning Betfair made further changes (after the initial BA fixed was uploaded), so later in the morning we had to add anothe fix to the fix, the download links are still the same but this has worked fine for users since they downloaded yesterday
viewtopic.php?f=46&t=21265
the4droogs
Posts: 78
Joined: Sun May 10, 2020 11:47 am

Big thanks again to the Bet Angel team for getting the fix out so fast. I am now on the b version.

I've read a bit more about this and it sounds like they are trying to avoid bets with less than a few cents liability. Which is fair enough I guess. How does the Bet Angel work around get past this. Does it just increase the green bet slightly so that it is above the allowed level? So we would have slightly uneven greening values (a much better scenario than no greening at all)?
Post Reply

Return to “Bet Angel - Automation”