Refresh Interval Questions

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
showtrader
Posts: 31
Joined: Sun Feb 07, 2021 6:42 pm

I recently moved to Streaming, but got a couple of questions;

If I'm using automation with Guardian on a number of markets, what effect does Streaming at 20ms actually have? Does it just mean I can refresh through all those markets quicker, or does it also actually affect how up to date the data is when each of those markets refreshes (or was that always refresh on every refresh anyway?).

I basically have every UK/IRE horse racing market in my Guardian. I'm noticing very little difference in how quickly Guardian can do a complete loop of all markets whether I use 100ms or 20ms - why would this be? It's almost like Guardian can't cope with going any faster than 100ms per market?

Thanks
User avatar
Dallas
Posts: 23599
Joined: Sun Aug 09, 2015 10:57 pm

Each time a market is refreshed everything is updated, all rules are checked (and triggered when conditions met etc)
So the faster the refresh rate ie, 20ms the more markets you can refresh and/or the more times each market gets refreshed

looking at the 'last update' column If you use 100ms you'll see around 10 markets updated each second, using 20ms you'll see upto 50 markets per second - although it can sometimes be slightly less depending on your connection etc
showtrader
Posts: 31
Joined: Sun Feb 07, 2021 6:42 pm

Thanks Dallas - see I'm only getting about 9 markets refreshed within each second on the 20ms setting (the refresh interval within Guardian).

I also have "Background Market Prices" in settings set at 20ms - is this correct?

Is there anything else I need to do in Communications tab in Settings to get the full speed?

Thanks
User avatar
Dallas
Posts: 23599
Joined: Sun Aug 09, 2015 10:57 pm

The settings in the communications won't effect how fast they get updated in Guardian (they are just for background prices and Tennis scores)

Do you have anything connected to them like excel worksheets that could be slowing it down?

If not can you add 30 markets to Guardian with the refresh rate at 20ms, then post a full screenshot so I can see as many last update times for as many markets as possible
showtrader
Posts: 31
Joined: Sun Feb 07, 2021 6:42 pm

No excel sheets... but I have three instances of BA and three Guardian's open;

Example attached
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23599
Joined: Sun Aug 09, 2015 10:57 pm

It could be because of the three instances you have running, depending on your PC spec it might be struggling to process everything quick enough.

Obviously a quick test is to shut two down instances and try it again with just one instance and nothing else running in the background on your PC
showtrader
Posts: 31
Joined: Sun Feb 07, 2021 6:42 pm

Tried that - no change.

I guess it's either my PC or it's that the rules I'm running are quite complex? One of rules has about 25 conditions, with quite a few OR/AND groups of conditions in there. Not sure if that's a lot or not.
showtrader
Posts: 31
Joined: Sun Feb 07, 2021 6:42 pm

Actually it's nothing to do with the rules is it. Even if I apply no rules to the markets, it's still only updating about 10 per second (with one Guardian open).

Anyone else experience this? Is it purely my connection that's the limiting factor, or could it be something else? My download speed is about 20 Mbps.

One thing I have noticed is that in the main Bet Angel window, at the bottom, it says [stopped] re the "Connection status for Betfair streaming". Does that mean something is wrong?

Thanks
User avatar
Dallas
Posts: 23599
Joined: Sun Aug 09, 2015 10:57 pm

showtrader wrote:
Wed Jun 30, 2021 11:42 am
Actually it's nothing to do with the rules is it. Even if I apply no rules to the markets, it's still only updating about 10 per second (with one Guardian open).

Anyone else experience this? Is it purely my connection that's the limiting factor, or could it be something else? My download speed is about 20 Mbps.

One thing I have noticed is that in the main Bet Angel window, at the bottom, it says [stopped] re the "Connection status for Betfair streaming". Does that mean something is wrong?

Thanks
It should have (Streaming) at all time, so it looks like there could be a problem with your connection and streaming
Is it showing (stopped) all the time?
showtrader
Posts: 31
Joined: Sun Feb 07, 2021 6:42 pm

Yep, always says [stopped]. I've never seen it say [streaming], not even when I first turn it on or anything.

What's odd though, is that it is definitely going through the markets quicker when I have streaming on (as I say, about 8 or 9 per second, vs the 5 I get when streaming not turned on). So it's doing something different, just not at the level you'd expect per the refresh interval.

I am using a work laptop btw. I wonder whether there's some software or something that's stopping the full streaming connection? Is there something particular about the way the streaming works that could be identified by a firewall or some other restriction that work have put on their network?

Thanks
User avatar
Dallas
Posts: 23599
Joined: Sun Aug 09, 2015 10:57 pm

showtrader wrote:
Thu Jul 01, 2021 9:09 am
Yep, always says [stopped]. I've never seen it say [streaming], not even when I first turn it on or anything.

What's odd though, is that it is definitely going through the markets quicker when I have streaming on (as I say, about 8 or 9 per second, vs the 5 I get when streaming not turned on). So it's doing something different, just not at the level you'd expect per the refresh interval.

I am using a work laptop btw. I wonder whether there's some software or something that's stopping the full streaming connection? Is there something particular about the way the streaming works that could be identified by a firewall or some other restriction that work have put on their network?

Thanks
Yes, streaming connections are routed a different way and firewalls/AV etc can block the ports it uses, so in a very small number of cases some people are not able to use it or use it fully which is in part why Betfair have not removed the polling option yet, which they always intended to do an BA still defaults to polling when you first install it.

If you have another connection you can try (ie, a 4g) you could see if that makes any difference, or if not and you have a spare laptop install Bet Angel on that and see if thats any different - that should at least point to if its your actual ISP or the computer causing the problem

Failing that there is some additional logging that can be done but if possible its worth trying the above first
Post Reply

Return to “Bet Angel - Automation”