[Horse Racing] Is Race Status available somewhere on Bet Angel?

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

It makes so much more sense to hedge my Pre-Race bots when markets are 'Going Behind' / 'At the post' status, rather than blindly a few seconds before scheduled off time as this is much closer to the true end of the market cycle timeline, vs a rough guess.

Can I access these two market states within BetAngel somehow? Perhaps using BetAngel API ?

...List of statues in code tag below from BF's end

Code: Select all

Race status is available for UK and Irish horse races. This information is provided by Betfair NG- API.
Status information is loaded when the market is added to the markets grid view and updated once per
second starting 5 minutes before the race official start time until the race is complete.
Possible race statuses are the following:
DORMANT - There is no data available for this race
DELAYED - The start of the race has been delayed
PARADING - The horses are in the parade ring
GOINGDOWN - The horses are going down to the starting post
GOINGBEHIND - The horses are going behind the stalls
ATTHEPOST - The horses are at the post
STARTED - The race has started
FINISHED - The race has finished
FALSESTART - There has been a false start
PHOTOGRAPH - The result of the race is subject to a photo finish
RESULT - The result of the race has been announced
WEIGHEDIN - The jockeys have weighed in
RACEVOID - The race has been declared void
ABANDONED - The meeting has been cancelled
Please note that not all race statuses will appear each time. It is common for a race status to go from
GOINGBEHIND to STARTED with ATTHEPOST being missed out.
If this is not possible I want to create a request for this ASAP
waytogo78247
Posts: 32
Joined: Tue Sep 03, 2019 5:12 pm

Surprised there is no answer here, but can't find it in BA. I know it is available in other software, but don't know how reliable the signals are from betfair. For example I have seen on the web Betfair screen races go from. "At the post" to in running without the "going behind" . I do tho have my Betfair refresh as high as 15 secs so may have missed it.
User avatar
Euler
Posts: 26504
Joined: Wed Nov 10, 2010 1:39 pm

We don't have it in Bet Angel, but when we last looked it was unreliable and we didn't consider it for inclusion on that basis.

If you base most of what you do on liquidity, then that's a good measure. Liquidity dies about 90s past post as people close, exit or stop betting. Even if they are 'at post' it makes little difference.
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

Thanks for the tip on liquidity, I could monitor for a drop in £/sec volume I suppose but it seems like a far riskier guesstimation given many races starting bang on time, i'd expect fast loading times to make things difficult, and it's not just HR mkts, greyhound markets often start early resulting in [preventable] unwanted exposure.

Doesn't need to be 100% reliable (what data feed is?) for it to be a useful feature that customers can choose whether or not to take advantage of.  It'd only bolster your potential evaluation of a market.

...Here's my draft solution for anyone interested:
1. Get a Betfair API key

2. [Inside .baf] Export current MarketID to .csv (for use in JSON request)
     ...Note: Use Global SV & logic to determine relevant market e.g. focus next mkt when previous turns IP

3A. Write a Python script (using the Betfair API key) to send a JSON request for race status from this endpoint
3B. Format the result then export to MarketStatus.csv (ready for BA import later)
     ...Note: Wrap code in a 10s re-execute loop to keep MarketStatus SV up-to-date

Code: Select all

import time

while(True): 
    <code here>
    time.sleep(10) 
     ...Note: Code could be expanded using Bet Angel's API to form a 24/7 fully automated workflow

Code: Select all

import json
import requests
import time

<Remove all markets from Guardian using Bet Angel API>
<Populate next day's markets into Guardian using Bet Angel API>
<Apply rules file to markets in Guardian using Bet Angel API>

while(True): 
    <Update MarketStatus.csv>
    time.sleep(10) 
    if NumberOfMarketsClosed == NumberOfMarketsInGuardian:
        break
4. [Inside .baf] Import RaceStatus SV from .csv into Bet Angel (re-arm every 10sec) for use
Post Reply

Return to “Bet Angel - Automation”