Automation Script

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
mongo
Posts: 4
Joined: Sat Apr 15, 2023 11:46 am

HI all,

Has something changed in the API the last couple of days?
My python script for adding Automation rules is no longer adding rules to certain markets.
was working perfectly a few days ago.
User avatar
ShaunWhite
Posts: 10408
Joined: Sat Sep 03, 2016 3:42 am

Unless you've installed a new BA version nothing could have changed it. The api is just within your pc using software on your pc. No external dependencies.
mongo
Posts: 4
Joined: Sat Apr 15, 2023 11:46 am

Not changed anything and Not updated anything, still on version 1.62.0
For some reason the script is now not seeing the rules files in Guardian.

2025-06-27 19:26:33,293 [INFO] Applying 'Correct Score' (attempt 10/10) with Predicted Goals.baf
2025-06-27 19:26:33,294 [DEBUG] Starting new HTTP connection (1): localhost:9000
2025-06-27 19:26:33,298 [DEBUG] http://localhost:9000 "POST /api/guardian/v1.0/applyRules HTTP/1.1" 200 139
2025-06-27 19:26:33,298 [DEBUG] → http://localhost:9000/api/guardian/v1.0/applyRules payload: {"rulesFileName": "Predicted Goals.baf", "marketsFilter": {"filter": "SPECIFIED_IDS", "ids": ["1.244647771", "1.244647891"]}, "guardianRulesColumn": 5}
2025-06-27 19:26:33,298 [DEBUG] ← http://localhost:9000/api/guardian/v1.0/applyRules response: {"status": "FAILED", "errors": [{"code": "UNKNOWN_RULES_FILE", "msg": "rulesFileName Predicted Goals.baf was not found or could not be loaded"}]}
2025-06-27 19:26:33,499 [ERROR] ❌ Failed to apply Predicted Goals.baf after retries
2025-06-27 19:26:33,499 [INFO] === Completed: 0 market-rules applied ===
Post Reply

Return to “Bet Angel - Automation”