BA API - Market closed\Suspended issues

The sport of kings.
Post Reply
sniffer66
Posts: 1816
Joined: Thu May 02, 2019 8:37 am

Anyone have any thoughts on what's happening here ? I'm getting this multiple times a day in the last few days

12/07/2025 13:52:42: Guardian has detected that the market is in-play
12/07/2025 13:52:43: [API] : Unable to place back bet on Senti Qua at 11.5. The market is suspended or closed.
12/07/2025 13:52:43: [API] : Unable to place back bet on Cosmic Force at 11.5. The market is suspended or closed.
12/07/2025 13:52:44: Guardian has detected that the market is now unsuspended
12/07/2025 13:54:07: Guardian has detected that the market is suspended

My code sees the market go in play, grabs BSP as soon as set via the API, places the entry 1s later but its rejected. There's no suspension logged after it goes in-play

Its intermittent, some races fine, others I get this
User avatar
jamesedwards
Posts: 4044
Joined: Wed Nov 21, 2018 6:16 pm

Looks like there was a delay in your automation recognising the race was unsuspended.

I didn't have any similar issue in that race.
z171.jpg
You do not have the required permissions to view the files attached to this post.
sniffer66
Posts: 1816
Joined: Thu May 02, 2019 8:37 am

But that's a standard Guardian log entry for suspend\unsuspend, not connected with the API or any applied baf.

Could it be that it's a practice mode issue whilst I'm testing the code ?
User avatar
jamesedwards
Posts: 4044
Joined: Wed Nov 21, 2018 6:16 pm

sniffer66 wrote:
Sun Jul 13, 2025 12:46 pm
But that's a standard Guardian log entry for suspend\unsuspend, not connected with the API or any applied baf.

Could it be that it's a practice mode issue whilst I'm testing the code ?
I can't pretend to understand API at all, but it looks to me that the problem was the extended suspended state of your automation. Your automation was trying to place bets into a market that it detected was still suspended.
sniffer66
Posts: 1816
Joined: Thu May 02, 2019 8:37 am

Cheers

I have it in practice mode on a 20ms refresh, and my times differ slightly from yours, so I'm thinking it might be an inherent practice mode delay. I'll try it on real money and see if it still happens
Post Reply

Return to “Trading Horse racing”