API Win/Loss Result

The Bet Angel API makes it easy for you to further enhance your betting and trading by integrating your own code into Bet Angel
Post Reply
User avatar
ilovepizza82
Posts: 552
Joined: Thu Nov 02, 2017 3:41 pm
Contact:

Hi

Does the API provide a win/loss result?
Thanks!
sniffer66
Posts: 1986
Joined: Thu May 02, 2019 8:37 am

I'm afraid not

I just apply a baf to record the winner as a Stored Value, via the API, then request the Stored Value when Closed
That does give you the ability to calc running pnl on the fly though. You can retrieve stake, price matched and any exits and get Python to keep a running total
User avatar
ilovepizza82
Posts: 552
Joined: Thu Nov 02, 2017 3:41 pm
Contact:

sniffer66 wrote:
Mon Sep 21, 2026 3:14 pm
I'm afraid not

I just apply a baf to record the winner as a Stored Value, via the API, then request the Stored Value when Closed
That does give you the ability to calc running pnl on the fly though. You can retrieve stake, price matched and any exits and get Python to keep a running total
Ok.Thanks man.
But can it show which runner won a race ?
I just wanna know which runner won a race using API. Dont wanna mess with PHD Betangel lvl quantum stored values: load market and edit automation and press this then enter this and then do this and that and then divide number of runners by speed of wind and angle of sun rays :P
Last edited by ilovepizza82 on Mon Sep 21, 2026 4:04 pm, edited 1 time in total.
sniffer66
Posts: 1986
Joined: Thu May 02, 2019 8:37 am

ilovepizza82 wrote:
Mon Sep 21, 2026 3:32 pm
sniffer66 wrote:
Mon Sep 21, 2026 3:14 pm
I'm afraid not

I just apply a baf to record the winner as a Stored Value, via the API, then request the Stored Value when Closed
That does give you the ability to calc running pnl on the fly though. You can retrieve stake, price matched and any exits and get Python to keep a running total
Ok.Thanks man.
But can it show which runner won a race ?
I just wanna know which runner won a race using API. Dont wanna mess with PHD Betangel lvl quantum stored values: load market and edit automation and press this then enter this and then do this and that and then divide number or runners by speed of wind and angle of sun rays :P

You will need to apply the baf, via the API, that saves the stored value "winner", then retrieve it in the API when the market status is Closed. It can all be done in your code, but that's the only way around it I've found. Its only a simple baf - Dallas has already posted one

1. Create baf and save to Guardian
2. Use API to load Coupon with your markets
3. Use API to apply baf to your specific markets
4. Use API to query race status, when closed retrieve Stored values for all selections, mark selection with named SV with value "winner"

Once the baf is saved to Guardian its all done in code
Post Reply

Return to “Bet Angel - API”