If I login to Bet Angel Professional 1.61 with factory default set for layout & settings profile, it uses about 225MB. Guardian will always be active in the background after login regardless of whether it is visible or not, so it's worth checking that your instance doesn't have Guardian saved with a number of markets already in its Markets List ( If it does, you can just remove them and click 'Save Markets' ).
New beta version of Bet Angel v1.61.0 - Now on general release
I'm seeing something a little strange when working with the BA API in the latest full release
I couldnt work out why some of my code was taking so long to run so dumped some of the data
So, if I load a coupon that results in 933 markets for the next 24 hours, set to Clear Guardian and Watch List, , run this code and examine the JSON
Post_to_BA("http://localhost:9000/api/markets/v1.0/getMarkets", '{"dataRequired":["ID","NAME","MARKET_START_TIME","EVENT_ID","EVENT_TYPE_ID","MARKET_TYPE"]}')
I get 3531 markets listed, with this being the last
+-> .result.markets[3531].name =Quang Nam v Sanna Khanh Hoa - Over/Under 3.5 Goals
+-> .result.markets[3531].marketType =OVER_UNDER_35
+-> .result.markets[3531].eventId =32769747
+-> .result.markets[3531].eventTypeId =1
+-> .result.markets[3531].startTime =2023-11-04T10:00:00+00:00
Looking further up the JSON to the start , I'm seeing markets starting from 29/10/2023
+-> .result.markets[0].id =1.220424873
+-> .result.markets[0].name =Wong Tai Sin v Yuen Long - Match Odds
+-> .result.markets[0].marketType =MATCH_ODDS
+-> .result.markets[0].eventId =32753916
+-> .result.markets[0].eventTypeId =1
+-> .result.markets[0].startTime =2023-10-29T05:30:00+00:00
I can't see these markets listed in Guardian itself, and they aren't loaded by the coupon today, so cannot fathom why they are being returned by my code, I would have had these loaded in Guardian previously, but should be cleared when loading the coupon each day
I'm stumped
EDIT: When I POST a request to remove them, I get an error stating they aren't in Guardian. But they are being returned when I post a GetMarkets request. They are still listed after a restart of BA
I couldnt work out why some of my code was taking so long to run so dumped some of the data
So, if I load a coupon that results in 933 markets for the next 24 hours, set to Clear Guardian and Watch List, , run this code and examine the JSON
Post_to_BA("http://localhost:9000/api/markets/v1.0/getMarkets", '{"dataRequired":["ID","NAME","MARKET_START_TIME","EVENT_ID","EVENT_TYPE_ID","MARKET_TYPE"]}')
I get 3531 markets listed, with this being the last
+-> .result.markets[3531].name =Quang Nam v Sanna Khanh Hoa - Over/Under 3.5 Goals
+-> .result.markets[3531].marketType =OVER_UNDER_35
+-> .result.markets[3531].eventId =32769747
+-> .result.markets[3531].eventTypeId =1
+-> .result.markets[3531].startTime =2023-11-04T10:00:00+00:00
Looking further up the JSON to the start , I'm seeing markets starting from 29/10/2023
+-> .result.markets[0].id =1.220424873
+-> .result.markets[0].name =Wong Tai Sin v Yuen Long - Match Odds
+-> .result.markets[0].marketType =MATCH_ODDS
+-> .result.markets[0].eventId =32753916
+-> .result.markets[0].eventTypeId =1
+-> .result.markets[0].startTime =2023-10-29T05:30:00+00:00
I can't see these markets listed in Guardian itself, and they aren't loaded by the coupon today, so cannot fathom why they are being returned by my code, I would have had these loaded in Guardian previously, but should be cleared when loading the coupon each day
I'm stumped
EDIT: When I POST a request to remove them, I get an error stating they aren't in Guardian. But they are being returned when I post a GetMarkets request. They are still listed after a restart of BA
That's bizarre. We did check for those sort of issues during testing, but the market management always behaved itself.
When Bet Angel is next closed, try deleting the file %homepath%\AppData\Roaming\Bet Angel\Bet Angel Professional\markets.cfg
Then restart Bet Angel and call getMarkets to see if it has helped clear everything out.
Thanks BA, I was going to ask if markets were cached somewhere, and if the cache could be clearedBet Angel wrote: ↑Mon Nov 06, 2023 11:59 amThat's bizarre. We did check for those sort of issues during testing, but the market management always behaved itself.
When Bet Angel is next closed, try deleting the file %homepath%\AppData\Roaming\Bet Angel\Bet Angel Professional\markets.cfg
Then restart Bet Angel and call getMarkets to see if it has helped clear everything out.
I checked again just now, with 544 markets in Guardian, and my code returns 921. With a lot of these:
-> .result.markets[0].id =1.220175444
+-> .result.markets[0].name =Market Closed (1.220175444)
+-> .result.markets[0].marketType =
+-> .result.markets[0].eventTypeId =
+-> .result.markets[0].startTime =0001-01-01T00:00:00
+-> .result.markets[0].inPlay =False
Checked markets.cfg and that market is listed, but is not in Guardian
markets.cfg is populated when you choose to Save Markets in Guardian, either by clicking the button in ribbon bar or by saying Yes when asked by Guardian if you want to save them on exit. Let us know if the problem still occurs once you've deleted the markets.cfg file.
Ok, so after deleting markets.cfg, my numbers tally
Thinking this through, what I'm doing is setting an SV for unwanted markets after KO in Guardian, called "RemoveMe". Them I'm querying each returned market for that SV and deleting it via this:
Post_to_BA("http://localhost:9000/api/guardian/v1.0/removeMarkets", '{"marketsFilter":{"filter":"SPECIFIED_IDS","ids":["' & $FootballID & '"]},"marketStatus":"ANY"}')
Could it that that the removeMarkets isn't deleting them cleanly ?
I'll keep an eye on my numbers over the day, as the code runs, and see if they go out of sync
Thinking this through, what I'm doing is setting an SV for unwanted markets after KO in Guardian, called "RemoveMe". Them I'm querying each returned market for that SV and deleting it via this:
Post_to_BA("http://localhost:9000/api/guardian/v1.0/removeMarkets", '{"marketsFilter":{"filter":"SPECIFIED_IDS","ids":["' & $FootballID & '"]},"marketStatus":"ANY"}')
Could it that that the removeMarkets isn't deleting them cleanly ?
I'll keep an eye on my numbers over the day, as the code runs, and see if they go out of sync
If you do discover some problems after a few days, try removing all closed markets by sending
{"marketsFilter":{"filter":"ALL"},"marketStatus":"CLOSED"} to the removeMarkets operation.
It shouldn't make any difference to the way markets are tidied up, but it'll be interesting to see if it does.
{"marketsFilter":{"filter":"ALL"},"marketStatus":"CLOSED"} to the removeMarkets operation.
It shouldn't make any difference to the way markets are tidied up, but it'll be interesting to see if it does.
The final beta version is the same that is on general release, (from memory there was only two betas with the second including a user suggestion), if in doubt just download the version from the website, you'll know you have the most up to date and it will run any examples imported
Is there a new version out? 1.61.1?Dallas wrote: ↑Tue Nov 14, 2023 2:45 pmThe final beta version is the same that is on general release, (from memory there was only two betas with the second including a user suggestion), if in doubt just download the version from the website, you'll know you have the most up to date and it will run any examples imported
That is the latest version and was released last week, but the only changes were to accommodate a planned change for NZ users, anyone outside NZ weren't going to be effected so didn't need to update.gstar1975 wrote: ↑Sat Feb 10, 2024 1:47 pmIs there a new version out? 1.61.1?Dallas wrote: ↑Tue Nov 14, 2023 2:45 pmThe final beta version is the same that is on general release, (from memory there was only two betas with the second including a user suggestion), if in doubt just download the version from the website, you'll know you have the most up to date and it will run any examples imported
As it turns out Betfair then cancelled the planned change so whether you are using V1.61 or V1.61.1 it won't make any difference
viewtopic.php?f=46&t=28718
No I understand! Thanks.Dallas wrote: ↑Sat Feb 10, 2024 2:44 pmThat is the latest version and was released last week, but the only changes were to accommodate a planned change for NZ users, anyone outside NZ weren't going to be effected so didn't need to update.gstar1975 wrote: ↑Sat Feb 10, 2024 1:47 pmIs there a new version out? 1.61.1?Dallas wrote: ↑Tue Nov 14, 2023 2:45 pm
The final beta version is the same that is on general release, (from memory there was only two betas with the second including a user suggestion), if in doubt just download the version from the website, you'll know you have the most up to date and it will run any examples imported
As it turns out Betfair then cancelled the planned change so whether you are using V1.61 or V1.61.1 it won't make any difference
viewtopic.php?f=46&t=28718
- jamesedwards
- Posts: 2934
- Joined: Wed Nov 21, 2018 6:16 pm
Presumably "update" is the optimum refresh setting over "20ms" for lowest latency on the one-click screen?
You do not have the required permissions to view the files attached to this post.
Yes.jamesedwards wrote: ↑Sat Mar 30, 2024 4:14 pmPresumably "update" is the optimum refresh setting over "20ms" for lowest latency on the one-click screen?
Here's the details from the release note about it:
When using Exchange Streaming you'll now find a new option in the 'Refresh every' picklist, rather than a specific refresh rate you can now pick 'Refresh every update'. That will cause the screen to be updated as soon as new information arrives on the data stream from betfair. Note: If you are on a less active market and no data arrives in 500ms then the market is refreshed anyway to keep charts and Servants ticking over. It'll save a few milliseconds over the 20ms rate on an active market and save some CPU load on a less active market.