Auto Loading Markets and Rules

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
firlandsfarm
Posts: 3303
Joined: Sat May 03, 2014 8:20 am

Hi all, is there a way to automatically ID new Bf markets within specific sports as they are posted, apply them to Guardian and attach one or more Rule Sets to those markets? I expect it will have something to do with the BA API but I have never used that yet!
User avatar
jamesedwards
Posts: 3915
Joined: Wed Nov 21, 2018 6:16 pm

firlandsfarm wrote:
Wed Jun 11, 2025 7:48 am
Hi all, is there a way to automatically ID new Bf markets within specific sports as they are posted, apply them to Guardian and attach one or more Rule Sets to those markets? I expect it will have something to do with the BA API but I have never used that yet!
It's the sign of an experienced trader when you get here. :mrgreen:

It can probably be done in the API but to do it in Guardian you need to use some sort of macro workaround.
sniffer66
Posts: 1808
Joined: Thu May 02, 2019 8:37 am

jamesedwards wrote:
Wed Jun 11, 2025 9:53 am
firlandsfarm wrote:
Wed Jun 11, 2025 7:48 am
Hi all, is there a way to automatically ID new Bf markets within specific sports as they are posted, apply them to Guardian and attach one or more Rule Sets to those markets? I expect it will have something to do with the BA API but I have never used that yet!
It's the sign of an experienced trader when you get here. :mrgreen:

It can probably be done in the API but to do it in Guardian you need to use some sort of macro workaround.
It's quite easily done in the API. I have Python code to do it (each sport has it's own EVENT_TYPE_ID). You can happily load multiple coupons, apply different rules to sports or market types, based on strings in the market name. You can even run on a timed loop\schedule so it's 100% hands free.

Happy to post up code snippets if it helps
User avatar
Euler
Posts: 26189
Joined: Wed Nov 10, 2010 1:39 pm

A quick workaround is to use auto-hot keys to trigger a keystroke at a certain time of the day.

That keystroke can automatically update the markets.

We realise this is a pain, but Betfair explicitly told us not to let customers auto update markets automatically directly from Bet Angel.
User avatar
ShaunWhite
Posts: 10353
Joined: Sat Sep 03, 2016 3:42 am

Euler wrote:
Wed Jun 11, 2025 11:17 am
We realise this is a pain, but Betfair explicitly told us not to let customers auto update markets automatically directly from Bet Angel.
What did they say when you asked why you can't?

Is it a safeguarding reason, because refreshing every 30m definately isn't an IT problem.
User avatar
Euler
Posts: 26189
Joined: Wed Nov 10, 2010 1:39 pm

If you look at the market tree at the moment, there are 25705 markets on there. Betfair wanted to stop people constantly pulling down those markets and putting unnecessary load on the API.
User avatar
ShaunWhite
Posts: 10353
Joined: Sat Sep 03, 2016 3:42 am

Euler wrote:
Wed Jun 11, 2025 2:21 pm
If you look at the market tree at the moment, there are 25705 markets on there. Betfair wanted to stop people constantly pulling down those markets and putting unnecessary load on the API.
The full market tree would be a problem admittedly and a design error, but interest in mixed double table tennis is limitted so it probably wouldn't need to be it all.

You could handle it by allowing users to subscribe to a limitted number of specific sports, eg like on the quick pick for choosing horses and/or dogs. Then refresh just those every hour or 30mins (not constantly) for almost no sever stress. That's how my system does it anyway, via optimising the market types on the connection subscriptions. It's how Betfair recommend you handle it too.

But its priorities I suppose, mine is fully automated rather than semi automated because I don't want to attend to it every day. But to be fully automated you need rules to define which new markets get chosen for which strategies and it's all probably OTT for most people. I can see why you're not keen to find a way to implement autorefresh properly, it's quite a big spend.
Post Reply

Return to “Bet Angel - Automation”