Power99 wrote: ↑Sat Nov 29, 2025 4:50 am
In order to make sscript find relevant market I must keep A LOT of markets in Guardian.
So, when bets are pushed to the market, Guardian cannot notify the script about unmatched bets before Guardian updates the market itself.
In busy days, it takes a lot of time for Guardian to update the market\bets info, because of the long queue, so the script cannot set KEEP in play status "fairly quickly".
Is there any way to FORCE Guardian to refresh this particular market\bets info after bets are pushed?
Or is there a better workaround?
A few things you can do to speed things up. Are you streaming with 20ms refresh and do you have Restrict Refresh setup in Guardian so you arent polling matches 3 hours away or before you need to get data from them ?
One other thing I do is set up a text Stored value in my baf that is set when I know the market is never going to be entered i.e 15m in to a match and my rules only trigger prior to that. I name mine "RemoveMe", and then get my code to look for that Stored Value and if set run:
http://localhost:9000/api/guardian/v1.0/removeMarkets {"marketsFilter":{"filter":"SPECIFIED_IDS","ids":[]},"marketStatus":"ANY"}
and just send that marketId in the payload
That keeps Guardian and the Watch List clean, stops unnecessary polling and speeds things up, especially on a busy Saturday