Hi
Does the API provide a win/loss result?
Thanks!
API Win/Loss Result
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
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
- ilovepizza82
- Posts: 552
- Joined: Thu Nov 02, 2017 3:41 pm
- Contact:
Ok.Thanks man.sniffer66 wrote: ↑Mon Sep 21, 2026 3:14 pmI'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
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
Last edited by ilovepizza82 on Mon Sep 21, 2026 4:04 pm, edited 1 time in total.
ilovepizza82 wrote: ↑Mon Sep 21, 2026 3:32 pmOk.Thanks man.sniffer66 wrote: ↑Mon Sep 21, 2026 3:14 pmI'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
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![]()
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
